We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 957a2b3 commit 5f7ef48Copy full SHA for 5f7ef48
drivers/md/raid5.c
@@ -7304,7 +7304,9 @@ static struct r5conf *setup_conf(struct mddev *mddev)
7304
goto abort;
7305
conf->mddev = mddev;
7306
7307
- if ((conf->stripe_hashtbl = kzalloc(PAGE_SIZE, GFP_KERNEL)) == NULL)
+ ret = -ENOMEM;
7308
+ conf->stripe_hashtbl = kzalloc(PAGE_SIZE, GFP_KERNEL);
7309
+ if (!conf->stripe_hashtbl)
7310
7311
7312
/* We init hash_locks[0] separately to that it can be used
0 commit comments