]> git.baikalelectronics.ru Git - kernel.git/commit
sd: bad return code of init_sd
authorClément Calmels <clement.calmels@free.fr>
Tue, 3 Jun 2014 21:34:25 +0000 (23:34 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:07:32 +0000 (22:07 +0200)
commit56cafe7f523b221d44b1bf664037c429261f8509
tree3bdf7252f41c91a6f8e2b84d9c6494451087d2a2
parent4556eab4c9c49542e34b54c11e261af10512a624
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>
drivers/scsi/sd.c