Skip to content

Commit 17af84b

Browse files
committed
dm-raid: fix variable in journal device check
JIRA: https://issues.redhat.com/browse/RHEL-119009 Upstream Status: kernel/git/torvalds/linux.git commit db53805 Author: Heinz Mauelshagen <[email protected]> Date: Tue Jun 10 20:53:30 2025 +0200 dm-raid: fix variable in journal device check Replace "rdev" with correct loop variable name "r". Signed-off-by: Heinz Mauelshagen <[email protected]> Cc: [email protected] Fixes: 63c32ed ("dm raid: add raid4/5/6 journaling support") Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Benjamin Marzinski <[email protected]>
1 parent 197f0d6 commit 17af84b

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
@@ -2411,7 +2411,7 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)
24112411
*/
24122412
sb_retrieve_failed_devices(sb, failed_devices);
24132413
rdev_for_each(r, mddev) {
2414-
if (test_bit(Journal, &rdev->flags) ||
2414+
if (test_bit(Journal, &r->flags) ||
24152415
!r->sb_page)
24162416
continue;
24172417
sb2 = page_address(r->sb_page);

0 commit comments

Comments
 (0)