From: Joel D. Diaz Date: Wed, 10 Oct 2012 08:36:11 +0000 (+0200) Subject: sd: Reshuffle init_sd to avoid crash X-Git-Tag: v3.2.38~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bdb5d1a2d352d58ac99be529bb8c006dfb9be83;p=pandora-kernel.git sd: Reshuffle init_sd to avoid crash commit afd5e34b2bb34881d3a789e62486814a49b47faa upstream. scsi_register_driver will register a prep_fn() function, which in turn migh need to use the sd_cdp_pool for DIF. Which hasn't been initialised at this point, leading to a crash. So reshuffle the init_sd() and exit_sd() paths to have the driver registered last. Signed-off-by: Joel D. Diaz Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed