diff options
| author | Heinz Mauelshagen <[email protected]> | 2025-06-10 18:53:30 +0000 |
|---|---|---|
| committer | Mikulas Patocka <[email protected]> | 2025-06-23 14:42:37 +0000 |
| commit | db53805156f1e0aa6d059c0d3f9ac660d4ef3eb4 (patch) | |
| tree | 8cc57f00024c24003547e584ae672af34a35e347 /drivers/md/dm-raid.c | |
| parent | dm-crypt: Extend state buffer size in crypt_iv_lmk_one (diff) | |
| download | kernel-db53805156f1e0aa6d059c0d3f9ac660d4ef3eb4.tar.gz kernel-db53805156f1e0aa6d059c0d3f9ac660d4ef3eb4.zip | |
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: 63c32ed4afc2 ("dm raid: add raid4/5/6 journaling support")
Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'drivers/md/dm-raid.c')
| -rw-r--r-- | drivers/md/dm-raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index d296770478b2..e8c0a8c6fb51 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -2407,7 +2407,7 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev) */ sb_retrieve_failed_devices(sb, failed_devices); rdev_for_each(r, mddev) { - if (test_bit(Journal, &rdev->flags) || + if (test_bit(Journal, &r->flags) || !r->sb_page) continue; sb2 = page_address(r->sb_page); |
