From: Clément Calmels Date: Tue, 3 Jun 2014 21:34:25 +0000 (+0200) Subject: sd: bad return code of init_sd X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d964478b2d124fcfde8017d02d4d70ae20802f2;p=pandora-kernel.git 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 Reviewed-by: Ewan D. Milne Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed