diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2024-02-27 22:11:23 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-03-10 18:44:43 -0400 |
commit | e288285d47784fdcf7c81be56df7d65c6f10c58b (patch) | |
tree | c0a6d6bd3391d0b7d635b7fc65edc9d62457548f /drivers/virt | |
parent | a27d4d0e7de305def8a5098a614053be208d1aa1 (diff) | |
download | linux-stable-e288285d47784fdcf7c81be56df7d65c6f10c58b.tar.gz linux-stable-e288285d47784fdcf7c81be56df7d65c6f10c58b.tar.bz2 linux-stable-e288285d47784fdcf7c81be56df7d65c6f10c58b.zip |
scsi: qla2xxx: Fix double free of the ha->vp_map pointer
Coverity scan reported potential risk of double free of the pointer
ha->vp_map. ha->vp_map was freed in qla2x00_mem_alloc(), and again freed
in function qla2x00_mem_free(ha).
Assign NULL to vp_map and kfree take care of NULL.
Cc: stable@vger.kernel.org
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240227164127.36465-8-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions