scsi: qla2xxx: Prevent memory leak for CT req/rsp allocation
authorQuinn Tran <qtran@marvall.com>
Fri, 25 Jan 2019 07:23:47 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:16 +0000 (21:41 -0500)
commit5e85f6df77223f69e738b815558ca01e6891a173
tree52597d69fcd4ae406696c735e3cf58431cd4ab68
parent97a93cea887376e13ea7d473ab349181850f4e39
scsi: qla2xxx: Prevent memory leak for CT req/rsp allocation

This patch fixes memory leak by releasing DMA memory in case CT request and
response allocation fails.

Signed-off-by: Quinn Tran <qtran@marvall.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_gs.c