Repository navigation
Commit 8d96447
sd: bad return code of init_sd
In init_sd function, if kmem_cache_create or mempool_create_slab_pools
calls fail, the error will not be correclty reported because
class_register previously set the value of err to 0.
Signed-off-by: Clément Calmels <clement.calmels@free.fr>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent cb2fb68 commit 8d96447
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3212 | 3212 | | |
3213 | 3213 | | |
3214 | 3214 | | |
| 3215 | + | |
3215 | 3216 | | |
3216 | 3217 | | |
3217 | 3218 | | |
3218 | 3219 | | |
3219 | 3220 | | |
3220 | 3221 | | |
| 3222 | + | |
3221 | 3223 | | |
3222 | 3224 | | |
3223 | 3225 | | |
| |||
0 commit comments