mirror-linux/drivers/media
Sasha Levin 7881cd6886 media: venus: Fix OPP table error handling
The venus driver fails to check if dev_pm_opp_find_freq_{ceil,floor}()
returns an error pointer before calling dev_pm_opp_put(). This causes
a crash when OPP tables are not present in device tree.

Unable to handle kernel access to user memory outside uaccess routines
at virtual address 000000000000002e
...
pc : dev_pm_opp_put+0x1c/0x4c
lr : core_clks_enable+0x4c/0x16c [venus_core]

Add IS_ERR() checks before calling dev_pm_opp_put() to avoid
dereferencing error pointers.

Fixes: b179234b5e ("media: venus: pm_helpers: use opp-table for the frequency")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-08-06 04:57:14 +03:00
..
cec media: cec: cec-gpio: reading hpd/5v is allowed to sleep 2025-07-08 08:35:27 +02:00
common media: flexcop-i2c: Constify struct i2c_algorithm 2025-06-17 10:35:14 +02:00
dvb-core treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
dvb-frontends media: dvb-frontends/cxd2820r: use new GPIO line value setter callbacks 2025-06-17 10:35:12 +02:00
firewire
i2c media: adv748x: Remove g_pixelaspect implementation 2025-07-10 13:44:58 +02:00
mc
mmc
pci [GIT PULL for v6.17] media updates 2025-07-31 13:16:09 -07:00
platform media: venus: Fix OPP table error handling 2025-08-06 04:57:14 +03:00
radio treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
rc media: rc: ir-spi: avoid overflow in multiplication 2025-06-23 12:11:04 +02:00
spi
test-drivers media: vivid: fix wrong pixel_array control size 2025-07-08 09:02:38 +02:00
tuners
usb [GIT PULL for v6.17] media updates 2025-07-31 13:16:09 -07:00
v4l2-core media: v4l2: Add support for NV12M tiled variants to v4l2_format_info() 2025-07-12 08:34:48 +02:00
Kconfig
Makefile