dm raid: use rs->raid_disks to avoid memory leaks on free
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 30 Jun 2016 12:37:50 +0000 (14:37 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:32 +0000 (15:37 -0400)
commitffeeac75157e48cf135c4c8b0c8377dd312e9036
tree40b863f7431f7f214674fb54eb989036f67e1510
parent7a7c330fc26652f71a4d73986d5308dcfdcef168
dm raid: use rs->raid_disks to avoid memory leaks on free

Also makes code more consistent throughout.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c