summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/cdns-pltfrm.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-12-03 10:45:09 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-12-10 01:01:51 +0100
commitfee92f25777789d73e1936b91472e9c4644457c8 (patch)
treeffc988a7c30a5a5cd823cdce73678295964ac3d2 /drivers/scsi/ufs/cdns-pltfrm.c
parentscsi: ufs: Give an unique ID to each ufs-bsg (diff)
downloadlinux-fee92f25777789d73e1936b91472e9c4644457c8.tar.xz
linux-fee92f25777789d73e1936b91472e9c4644457c8.zip
scsi: iscsi: qla4xxx: fix double free in probe
On this error path we call qla4xxx_mem_free() and then the caller also calls qla4xxx_free_adapter() which calls qla4xxx_mem_free(). It leads to a couple double frees: drivers/scsi/qla4xxx/ql4_os.c:8856 qla4xxx_probe_adapter() warn: 'ha->chap_dma_pool' double freed drivers/scsi/qla4xxx/ql4_os.c:8856 qla4xxx_probe_adapter() warn: 'ha->fw_ddb_dma_pool' double freed Fixes: afaf5a2d341d ("[SCSI] Initial Commit of qla4xxx") Link: https://lore.kernel.org/r/20191203094421.hw7ex7qr3j2rbsmx@kili.mountain Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/cdns-pltfrm.c')
0 files changed, 0 insertions, 0 deletions