Commit 5f7ef48
md/raid5: missing error code in setup_conf()
Return -ENOMEM if the allocation fails. Don't return success.
Fixes: 8fbcba6 ("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>1 parent 957a2b3 commit 5f7ef48
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7304 | 7304 | | |
7305 | 7305 | | |
7306 | 7306 | | |
7307 | | - | |
| 7307 | + | |
| 7308 | + | |
| 7309 | + | |
7308 | 7310 | | |
7309 | 7311 | | |
7310 | 7312 | | |
| |||
0 commit comments