fix use after potential free in scsi_cd_put
kref_put could free the cd structure. We need a copy
of cd->device to do a scsi_device_put after the
kref_put.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Showing
Please register or sign in to comment