projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754d124
)
[SCSI] qla2xxx: Set the index in outstanding command array to NULL when cmd is aborte...
author
Giridhar Malavali
<
[email protected]
>
Tue, 25 Jun 2013 15:27:17 +0000
(11:27 -0400)
committer
James Bottomley
<
[email protected]
>
Mon, 8 Jul 2013 16:16:29 +0000
(17:16 +0100)
Call the generic BSG free routine to unmap the DMA buffers.
Signed-off-by: Giridhar Malavali <
[email protected]
>
Signed-off-by: Saurav Kashyap <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/qla2xxx/qla_bsg.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_bsg.c
b/drivers/scsi/qla2xxx/qla_bsg.c
index 39719f8924889c04d1aadb4dbe027dfdb8d8a87b..5ba0cc1f982b06b9220e7b139bedb10d52715218 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_bsg.c
+++ b/
drivers/scsi/qla2xxx/qla_bsg.c
@@
-2153,6
+2153,7
@@
qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job)
(sp->type == SRB_ELS_CMD_HST) ||
(sp->type == SRB_FXIOCB_BCMD))
&& (sp->u.bsg_job == bsg_job)) {
+ req->outstanding_cmds[cnt] = NULL;
spin_unlock_irqrestore(&ha->hardware_lock, flags);
if (ha->isp_ops->abort_command(sp)) {
ql_log(ql_log_warn, vha, 0x7089,
@@
-2180,8
+2181,6
@@
qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job)
done:
spin_unlock_irqrestore(&ha->hardware_lock, flags);
- if (bsg_job->request->msgcode == FC_BSG_HST_CT)
- kfree(sp->fcport);
- qla2x00_rel_sp(vha, sp);
+ sp->free(vha, sp);
return 0;
}