Skip to content

Commit 6cea3ed

Browse files
mauelshasmb49
authored andcommitted
dm-raid: fix variable in journal device check
BugLink: https://bugs.launchpad.net/bugs/2121266 commit db53805 upstream. Replace "rdev" with correct loop variable name "r". Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Cc: stable@vger.kernel.org Fixes: 63c32ed ("dm raid: add raid4/5/6 journaling support") Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 7acac88 commit 6cea3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-raid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
24102410
*/
24112411
sb_retrieve_failed_devices(sb, failed_devices);
24122412
rdev_for_each(r, mddev) {
2413-
if (test_bit(Journal, &rdev->flags) ||
2413+
if (test_bit(Journal, &r->flags) ||
24142414
!r->sb_page)
24152415
continue;
24162416
sb2 = page_address(r->sb_page);

0 commit comments

Comments
 (0)