Skip to content
Commit 8d964478 authored by Clément Calmels's avatar Clément Calmels Committed by Christoph Hellwig
Browse files

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: default avatarClément Calmels <clement.calmels@free.fr>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent cb2fb68d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment