From: Kashyap, Desai Date: Thu, 8 Apr 2010 12:25:22 +0000 (+0530) Subject: [SCSI] mpt2sas: Before removing sas_device search device in list for _scsih_sas_devic... X-Git-Tag: v2.6.35-rc1~470^2^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980ead3180233d09ad37aacd803059b3142c7863;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed