]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: Before removing sas_device search device in list for _scsih_sas_devic...
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 8 Apr 2010 12:25:22 +0000 (17:55 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 19:00:32 +0000 (14:00 -0500)
commit0639032998d2c5f67e804cbd509b907b2c26f246
treef5d948b5a791b0fdaf6ec9b34682157a54dcd799
parent372660ec000b9b3f59076df3e6cb84776091e2fa
[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>
drivers/scsi/mpt2sas/mpt2sas_scsih.c