Skip to content

Commit 82e094f

Browse files
committed
Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-5.19
Pull MD fix from Song. * 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: md/raid5: missing error code in setup_conf()
2 parents 957a2b3 + 5f7ef48 commit 82e094f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/md/raid5.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7304,7 +7304,9 @@ static struct r5conf *setup_conf(struct mddev *mddev)
73047304
goto abort;
73057305
conf->mddev = mddev;
73067306

7307-
if ((conf->stripe_hashtbl = kzalloc(PAGE_SIZE, GFP_KERNEL)) == NULL)
7307+
ret = -ENOMEM;
7308+
conf->stripe_hashtbl = kzalloc(PAGE_SIZE, GFP_KERNEL);
7309+
if (!conf->stripe_hashtbl)
73087310
goto abort;
73097311

73107312
/* We init hash_locks[0] separately to that it can be used

0 commit comments

Comments
 (0)