mirror-linux/drivers
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
..
accel drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
accessibility
acpi Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
amba
android Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
ata
atm
auxdisplay
base Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
bcma
block Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
bluetooth Bluetooth: btintel_pcie: Fix Alive Context State Handling 2025-07-23 10:34:30 -04:00
bus soc: driver updates for 6.17 2025-07-29 11:13:27 -07:00
cache
cdrom cdrom: Call cdrom_mrw_exit from cdrom_release function 2025-07-22 19:10:17 -06:00
cdx
char This update includes the following changes: 2025-07-31 09:45:28 -07:00
clk This is the usual collection of primarily clk driver updates. The big part of 2025-07-31 13:36:27 -07:00
clocksource A treewide cleanup of struct cycle_counter const annotations: 2025-07-29 14:02:53 -07:00
comedi Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
connector
counter
cpufreq Rust changes for v6.17 2025-08-03 13:49:10 -07:00
cpuidle pmdomain core: 2025-07-29 11:42:31 -07:00
crypto This update includes the following changes: 2025-07-31 09:45:28 -07:00
cxl Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
dax
dca
devfreq
dio
dma dmaengine updates for v6.17 2025-08-01 12:35:12 -07:00
dma-buf drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
dpll dpll: zl3073x: Fix build failure 2025-07-26 12:05:33 -07:00
edac - i10nm: 2025-07-29 16:30:38 -07:00
eisa
extcon
firewire
firmware arm64 updates for 6.17: 2025-07-29 20:21:54 -07:00
fpga
fsi Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
fwctl
gnss
gpio gpio updates for v6.17-rc1 2025-07-28 21:58:46 -07:00
gpu Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
greybus
hid hid-for-linus-2025073101 2025-07-31 21:26:05 -07:00
hsi
hte
hv ARM: 2025-07-30 17:14:01 -07:00
hwmon This is the usual collection of primarily clk driver updates. The big part of 2025-07-31 13:36:27 -07:00
hwspinlock
hwtracing
i2c i2c: muxes: mule: Fix an error handling path in mule_i2c_mux_probe() 2025-08-03 22:47:57 +02:00
i3c i3c: add missing include to internal header 2025-07-31 02:25:17 +02:00
idle
iio This is the usual collection of primarily clk driver updates. The big part of 2025-07-31 13:36:27 -07:00
infiniband RDMA v6.17 merge window pull request 2025-07-31 12:19:55 -07:00
input Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
interconnect Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
iommu pci-v6.17-changes 2025-08-01 13:59:07 -07:00
ipack
irqchip ARM: 2025-07-30 17:14:01 -07:00
isdn
leds LEDs for for v6.17 2025-07-31 11:54:01 -07:00
macintosh
mailbox Merge branch 'newsoc/cix-p1' into soc/newsoc 2025-07-21 17:16:16 +02:00
mcb
md dm-table: fix checking for request-based stackable devices 2025-08-04 08:58:53 -07:00
media media: venus: Fix OPP table error handling 2025-08-06 04:57:14 +03:00
memory Memory controller drivers for v6.17 2025-07-22 22:47:00 +02:00
memstick
message
mfd MFD for v6.17 2025-07-31 11:50:25 -07:00
misc pci-v6.17-changes 2025-08-01 13:59:07 -07:00
mmc MMC core: 2025-07-29 12:05:38 -07:00
most
mtd * MTD changes: 2025-07-31 13:43:02 -07:00
mux hardening updates for v6.17-rc1 2025-07-28 17:16:12 -07:00
net net: usbnet: Fix the wrong netif_carrier_on() call 2025-08-06 04:39:42 +03:00
nfc
ntb
nubus
nvdimm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
nvme for-6.17/block-20250728 2025-07-28 16:43:54 -07:00
nvmem Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
of ARM: 2025-07-30 17:14:01 -07:00
opp
parisc parisc/power: Move soft-power into power.c 2025-07-23 11:52:48 +02:00
parport
pci powerpc fixes for 6.17 #2 2025-08-03 19:15:04 -07:00
pcmcia
peci
perf
phy phy-for-6.17 2025-08-01 12:31:50 -07:00
pinctrl Pin control changes for v6.17 2025-08-02 12:07:09 -07:00
platform [GIT PULL for v6.17] media updates 2025-07-31 13:16:09 -07:00
pmdomain pmdomain: qcom: rpmhpd: Add Glymur RPMh Power Domains 2025-07-23 12:12:16 +02:00
pnp
power power supply and reset changes for the 6.17 series 2025-07-31 21:39:01 -07:00
powercap platform-drivers-x86 for v6.17-1 2025-07-28 23:21:28 -07:00
pps
ps3
ptp Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
pwm This is the usual collection of primarily clk driver updates. The big part of 2025-07-31 13:36:27 -07:00
rapidio
ras
regulator power supply and reset changes for the 6.17 series 2025-07-31 21:39:01 -07:00
remoteproc remoteproc updates for v6.17 2025-08-01 15:02:25 -07:00
reset This is the usual collection of primarily clk driver updates. The big part of 2025-07-31 13:36:27 -07:00
rpmsg remoteproc updates for v6.17 2025-08-01 15:02:25 -07:00
rtc RTC for 6.17 2025-08-03 20:17:34 -07:00
s390 Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
sbus
scsi SCSI misc on 20250730 2025-07-31 12:13:53 -07:00
sh
siox
slimbus
soc drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
soundwire soundwire updates for 6.17 2025-08-01 11:09:27 -07:00
spi * MTD changes: 2025-07-31 13:43:02 -07:00
spmi
ssb ssb: use new GPIO line value setter callbacks for the second GPIO chip 2025-07-24 09:06:46 +02:00
staging [GIT PULL for v6.17] media updates 2025-07-31 13:16:09 -07:00
target
tc
tee
thermal Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
thunderbolt thunderbolt: Fix copy+paste error in match_service_id() 2025-07-21 16:33:43 +02:00
tty DT updates for ralink, mobileye and ralink 2025-07-31 11:08:55 -07:00
ufs phy-for-6.17 2025-08-01 12:31:50 -07:00
uio
usb Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
vdpa vdpa: Fix IDR memory leak in VDUSE module exit 2025-08-01 09:11:08 -04:00
vfio pci-v6.17-changes 2025-08-01 13:59:07 -07:00
vhost virtio, vhost: features, fixes 2025-08-01 14:17:48 -07:00
video fbdev fixes and cleanups for 6.17-rc1: 2025-08-02 09:58:11 -07:00
virt - Map the SNP calling area pages too so that OVMF EFI fw can issue SVSM 2025-07-29 17:18:46 -07:00
virtio virtio, vhost: features, fixes 2025-08-01 14:17:48 -07:00
w1
watchdog watchdog: sbsa: Adjust keepalive timeout to avoid MediaTek WS0 race condition 2025-07-28 12:07:08 +02:00
xen
zorro
Kconfig drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
Makefile