]> 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)
commit6b6512678a92245634f34c45f9a764ad258254d3
tree0097e4bad8f7088c5401a6a71acd0ac05ee30fb9
parent33cfe03786ad7d88ab88f43a760ca9a02775fabf
md/raid5: missing error code in setup_conf()

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

Fixes: 016c903e1c42 ("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