[SCSI] mptfusion: Proper bus_type check is added
Added proper bus_type check before processing event/ reset handler. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
48959f1eae
commit
ffb7fef32b
@@ -4779,6 +4779,9 @@ mptsas_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *reply)
|
||||
struct fw_event_work *fw_event;
|
||||
unsigned long delay;
|
||||
|
||||
if (ioc->bus_type != SAS)
|
||||
return 0;
|
||||
|
||||
/* events turned off due to host reset or driver unloading */
|
||||
if (ioc->fw_events_off)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user