mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
Fixes crash with certain topology setups. Reported and tested by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+11
-2
@@ -671,8 +671,14 @@ qla2x00_abort_fcport_cmds(fc_port_t *fcport)
|
||||
int cnt;
|
||||
unsigned long flags;
|
||||
srb_t *sp;
|
||||
scsi_qla_host_t *ha = fcport->ha;
|
||||
scsi_qla_host_t *pha = to_qla_parent(ha);
|
||||
scsi_qla_host_t *ha;
|
||||
scsi_qla_host_t *pha;
|
||||
|
||||
if (fcport == NULL)
|
||||
goto out;
|
||||
|
||||
ha = fcport->ha;
|
||||
pha = to_qla_parent(ha);
|
||||
|
||||
spin_lock_irqsave(&pha->hardware_lock, flags);
|
||||
for (cnt = 1; cnt < MAX_OUTSTANDING_COMMANDS; cnt++) {
|
||||
@@ -697,6 +703,9 @@ qla2x00_abort_fcport_cmds(fc_port_t *fcport)
|
||||
spin_lock_irqsave(&pha->hardware_lock, flags);
|
||||
}
|
||||
spin_unlock_irqrestore(&pha->hardware_lock, flags);
|
||||
|
||||
out:
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user