diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2016-04-07 09:07:59 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-04-15 16:53:10 -0400 |
commit | d02327a863168647b9e6fde610c4730ff4837f9e (patch) | |
tree | 14f84de3a85acbf2ee958d15effe56c764ebbc4e /REPORTING-BUGS | |
parent | f72464d128efd22301ce58b204f3f1808013a536 (diff) | |
download | linux-d02327a863168647b9e6fde610c4730ff4837f9e.tar.gz linux-d02327a863168647b9e6fde610c4730ff4837f9e.tar.bz2 linux-d02327a863168647b9e6fde610c4730ff4837f9e.zip |
bnx2fc: Check sc_cmd device and host pointer before returning the command to the mid-layer.
When we are in connection recovery and the internal command timer on a
request pops, either the scsi_cmnd->device or scsi_cmnd->device->host
back pointers may be NULL as the device that the command that the
request was submitted on may have been subsequently reaped due to the
connection recovery. This can cause one or both of the pointers above to
be NULL and cause a system crash if we try to return the command to the
midlayer.
Instead, double check the pointers before the return to the midlayer so
as to prevent the crash and let the upper layers finish the session
recovery and rediscover the device.
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions