Skip to content

Commit d0ca989

Browse files
mauelshavijay-suman
authored andcommitted
dm-raid: fix variable in journal device check
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> (cherry picked from commit 2826ef05854dfbb0e097d268e579fe144cfb4138) Signed-off-by: Vijayendra Suman <vijayendra.suman@oracle.com>
1 parent 032df49 commit d0ca989

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
@@ -2381,7 +2381,7 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
23812381
*/
23822382
sb_retrieve_failed_devices(sb, failed_devices);
23832383
rdev_for_each(r, mddev) {
2384-
if (test_bit(Journal, &rdev->flags) ||
2384+
if (test_bit(Journal, &r->flags) ||
23852385
!r->sb_page)
23862386
continue;
23872387
sb2 = page_address(r->sb_page);

0 commit comments

Comments
 (0)