diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-10-29 11:25:55 +0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-11-12 20:53:41 -0500 |
| commit | acd194d9b5bac419e04968ffa44351afabb50bac (patch) | |
| tree | 24d6a76cfb9972fd3c22599395b8ecf23155d29a /drivers/message/fusion/mptbase.c | |
| parent | f6ab594672d4cba08540919a4e6be2e202b60007 (diff) | |
scsi: sim710: Fix resource leak by adding missing ioport_unmap() calls
The driver calls ioport_map() to map I/O ports in sim710_probe_common()
but never calls ioport_unmap() to release the mapping. This causes
resource leaks in both the error path when request_irq() fails and in
the normal device removal path via sim710_device_remove().
Add ioport_unmap() calls in the out_release error path and in
sim710_device_remove().
Fixes: 56fece20086e ("[PATCH] finally fix 53c700 to use the generic iomem infrastructure")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251029032555.1476-1-vulab@iscas.ac.cn
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
0 files changed, 0 insertions, 0 deletions
