diff options
author | Sawan Chandak | 2016-07-06 11:14:25 -0400 |
---|---|---|
committer | Martin K. Petersen | 2016-07-15 15:31:31 -0400 |
commit | 783e0dc4f66ade6bbd8833b6bae778158d54c1a6 (patch) | |
tree | 730b6f3f3b3912a45e70b07ee2504c820f883385 /drivers/scsi/qla2xxx/qla_bsg.c | |
parent | c6dc99058e5798958847eab7411083ca5b25643c (diff) |
qla2xxx: Check for device state before unloading the driver.
During hot swap of PCI device, there can be PCI error on device,
during normal driver unload. The race between normal driver unload and
driver unload due to PCI error, can lead to system crash.Fix is to check
if there is unload going on and allow that function to unload the driver.
Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_bsg.c')
0 files changed, 0 insertions, 0 deletions