Skip to content

Commit 8ae520b

Browse files
committed
dm-raid: fix variable in journal device check
JIRA: https://issues.redhat.com/browse/RHEL-119008 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 029b88e commit 8ae520b

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

0 commit comments

Comments
 (0)