Commit 783e0dc4 authored by Committed by Martin K. Petersen
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 <email@example.com> Signed-off-by: Himanshu Madhani <firstname.lastname@example.org> Reviewed-by: Hannes Reinecke <email@example.com> Signed-off-by: Martin K. Petersen <firstname.lastname@example.org>
Showing with 52 additions and 13 deletions