commit | afd5e34b2bb34881d3a789e62486814a49b47faa | [log] [tgz] |
---|---|---|
author | Joel D. Diaz <joeldiaz@us.ibm.com> | Wed Oct 10 10:36:11 2012 +0200 |
committer | James Bottomley <JBottomley@Parallels.com> | Tue Nov 27 08:59:34 2012 +0400 |
tree | e289c2ef0d8be9b007423e3c7eda3440e788092f | |
parent | 500c152afbafba2adcb23bb2e37b7138eb003b7f [diff] |
[SCSI] sd: Reshuffle init_sd to avoid crash 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 <joeldiaz@us.ibm.com> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>