]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: hpsa: Fix DMA mapping leak on IOACCEL2 reset path
authorHaoxiang Li <haoxiang_li2024@163.com>
Mon, 22 Jun 2026 16:00:28 +0000 (00:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 13 Jul 2026 02:21:22 +0000 (22:21 -0400)
commite166bafc483e927150cb9b5f286c9191ea0df84e
tree47b50742389ce8aeda39319172bbc1cac2838568
parent2c007acf7b31c39c08ce4959451ad00b19be4c1f
scsi: hpsa: Fix DMA mapping leak on IOACCEL2 reset path

If phys_disk->in_reset is set, the function returns directly without
undoing the resources acquired for the command. Add the missing error
cleanup by unmapping the IOACCEL2 SG chain block when needed, unmapping
the SCSI command, and dropping the outstanding IOACCEL command count
before returning.

Fixes: c5dfd106414f ("scsi: hpsa: correct device resets")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Acked-by: Don Brace <don.brace@microchip.com>
Link: https://patch.msgid.link/20260622160028.1240496-1-haoxiang_li2024@163.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c