diff options
author | Joel D. Diaz <joeldiaz@us.ibm.com> | 2012-10-10 10:36:11 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-02-06 04:33:53 +0000 |
commit | 8bdb5d1a2d352d58ac99be529bb8c006dfb9be83 (patch) | |
tree | efe11c5b2dcebe7da8e1b86a6b1ae84016b63285 /drivers/scsi/scsi_transport_srp.c | |
parent | 2d0b97a83962b7687f196c5b348fa9ded5f27c3c (diff) |
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 <joeldiaz@us.ibm.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/scsi/scsi_transport_srp.c')
0 files changed, 0 insertions, 0 deletions