]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: missing error code in setup_conf()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Jul 2022 09:48:01 +0000 (12:48 +0300)
committerSong Liu <song@kernel.org>
Tue, 19 Jul 2022 17:58:33 +0000 (10:58 -0700)
commit86a4b5ff4e48550ae8cb841e0c2bdb27f4af3354
tree0097e4bad8f7088c5401a6a71acd0ac05ee30fb9
parent33dff656b1336370b497415e4d6bcc20013ba0d2
md/raid5: missing error code in setup_conf()

Return -ENOMEM if the allocation fails.  Don't return success.

Fixes: b322c93b54e4 ("md/raid5: Cleanup setup_conf() error returns")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c