diff options
| author | Wang Jun <1742789905@qq.com> | 2026-03-20 15:04:53 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-06 09:05:56 +0200 |
| commit | a0701e387b46e2481c05b47f1235b954bfc2af3e (patch) | |
| tree | 81ef225b7991bc3a229958ec6f08f81324c65b1f /include/linux/stackprotector.h | |
| parent | a562d6dc86bdfdd299e1b4734977a8d63e803583 (diff) | |
media: cx23885: add ioremap return check and cleanup
Add a check for the return value of pci_ioremap_bar()
in cx23885_dev_setup().
If ioremap for BAR0 fails, release the already allocated
PCI memory region,
decrement the device count, and return -ENODEV.
This prevents a potential null pointer dereference and
ensures proper cleanup
on memory mapping failure.
Fixes: d19770e5178a ("V4L/DVB (6150): Add CX23885/CX23887 PCIe bridge driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wang Jun <1742789905@qq.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
