From 8d964478b2d124fcfde8017d02d4d70ae20802f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Calmels?= Date: Tue, 3 Jun 2014 23:34:25 +0200 Subject: [PATCH] sd: bad return code of init_sd MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed