OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa6db9b
)
qla4xxx: Fix memory leak in func qla4_84xx_config_acb()
author
Vikas Chaudhary
<vikas.chaudhary@qlogic.com>
Tue, 25 Feb 2014 03:07:04 +0000
(22:07 -0500)
committer
Christoph Hellwig
<hch@lst.de>
Mon, 19 May 2014 17:12:17 +0000
(19:12 +0200)
Use correct goto statement to free dma memory in case of
failure in function qla4_84xx_config_acb()
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla4xxx/ql4_mbx.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla4xxx/ql4_mbx.c
b/drivers/scsi/qla4xxx/ql4_mbx.c
index
0a6b782
..
1345c0e
100644
(file)
--- a/
drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/
drivers/scsi/qla4xxx/ql4_mbx.c
@@
-2381,7
+2381,7
@@
int qla4_84xx_config_acb(struct scsi_qla_host *ha, int acb_config)
ql4_printk(KERN_ERR, ha, "%s: Unable to alloc acb\n",
__func__);
rval = QLA_ERROR;
- goto exit_
config
_acb;
+ goto exit_
free
_acb;
}
memcpy(ha->saved_acb, acb, acb_len);
break;