summaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpt2sas_base.h
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2010-04-08 12:25:22 (GMT)
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 19:00:32 (GMT)
commit980ead3180233d09ad37aacd803059b3142c7863 (patch)
treef5d948b5a791b0fdaf6ec9b34682157a54dcd799 /drivers/scsi/mpt2sas/mpt2sas_base.h
parent130b958a5dbf0fca361beef5713715a2eba6529f (diff)
downloadlinux-fsl-qoriq-980ead3180233d09ad37aacd803059b3142c7863.tar.xz
[SCSI] mpt2sas: Before removing sas_device search device in list for _scsih_sas_device_remove
Fix a oops in _scsih_sas_device_remove. The driver was attempting to delete a object from the sas_device link list when the object was not present. Added sanity check for sas_device NULL dereference. before deleting sas_device now driver will search device in list then only it will follow device removal. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.h')
0 files changed, 0 insertions, 0 deletions