diff options
| author | Wang Jun <1742789905@qq.com> | 2026-03-16 20:24:01 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-03-16 19:07:58 +0100 |
| commit | d51c60a498e83c9a79884c8e420f97e3885c9583 (patch) | |
| tree | c6f897ecbceb264351cd67d0153be3051583833a /tools/lib/python/kdoc/python_version.py | |
| parent | 8ea21435fe36fb853706f4935d78bc11beb63fb4 (diff) | |
media: saa7164: add ioremap return checks and cleanups
Add checks for ioremap return values in saa7164_dev_setup(). If
ioremap for BAR0 or BAR2 fails, release the already allocated PCI
memory regions, remove the device from the global list, decrement
the device count, and return -ENODEV.
This prevents potential null pointer dereferences and ensures proper
cleanup on memory mapping failures.
Fixes: 443c1228d505 ("V4L/DVB (12923): SAA7164: Add support for the NXP SAA7164 silicon")
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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
