diff options
| author | Artem Lytkin <iprintercanon@gmail.com> | 2026-02-16 20:20:38 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-03-19 16:15:17 +0100 |
| commit | d61185cb3ea14874bbbbdc2d56fc9b0337a8dc25 (patch) | |
| tree | 518de780cb6c2f8dae58e5b76904efbf0acc987f /include/net/aligned_data.h | |
| parent | d8df600b67d70dee6b682b267f85edf236a73854 (diff) | |
staging: sm750fb: add missing pci_release_region on error and removal
commit 8225489ddb900656cc21573b4e1b00c9181fd777 upstream.
hw_sm750_map() calls pci_request_region() but never releases the
region on error paths or in lynxfb_pci_remove(). This causes a
resource leak that prevents the PCI region from being mapped again
after driver removal or a failed probe. A TODO comment in the code
acknowledges this missing cleanup.
Restructure the error handling in hw_sm750_map() to properly release
the PCI region on ioremap failures, and add pci_release_region() to
lynxfb_pci_remove().
Signed-off-by: Artem Lytkin <iprintercanon@gmail.com>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20260216202038.1828-1-iprintercanon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
