projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/scsi/qla4xxx/ql4_mbx.c
b/drivers/scsi/qla4xxx/ql4_mbx.c
index 0a6b782d6fdbe9d5113dcc0c19ff9b50d80b010b..1345c0eaa6d7fe71a42c2cbf076b08f424e7a305 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;