linux-stable/drivers
Manivannan Sadhasivam 2813cafbb8 OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
[ Upstream commit d920920f85 ]

If dev_pm_domain_attach_by_name() returns NULL, then 0 will be passed to
PTR_ERR() as reported by the smatch warning below:

drivers/opp/core.c:2456 _opp_attach_genpd() warn: passing zero to 'PTR_ERR'

Fix it by checking for the non-NULL virt_dev pointer before passing it to
PTR_ERR. Otherwise return -ENODEV.

Fixes: 4ea9496cbc ("opp: Fix error check in dev_pm_opp_attach_genpd()")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:47:57 +02:00
..
accel accel/qaic: Clean up integer overflow checking in map_user_pages() 2023-08-23 17:32:45 +02:00
accessibility
acpi ACPI: thermal: Drop nocrt parameter 2023-09-02 09:14:37 +02:00
amba
android binder: fix memory leak in binder_init() 2023-08-16 18:32:21 +02:00
ata ata: pata_arasan_cf: Use dev_err_probe() instead dev_err() in data_xfer() 2023-09-13 09:47:52 +02:00
atm
auxdisplay
base x86/srso: Add a Speculative RAS Overflow mitigation 2023-08-08 20:04:51 +02:00
bcma
block zram: take device and not only bvec offset into account 2023-08-16 18:32:17 +02:00
bluetooth Bluetooth: btrtl: Load FW v2 otherwise FW v1 for RTL8852C 2023-09-13 09:47:56 +02:00
bus bus: ti-sysc: Flush posted write on enable before reset 2023-08-23 17:32:49 +02:00
cdrom
cdx
char tpm: Enable hwrng only for Pluton on AMD CPUs 2023-09-13 09:47:56 +02:00
clk clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM 2023-09-13 09:47:53 +02:00
clocksource
comedi
connector
counter
cpufreq cpufreq: intel_pstate: set stale CPU frequency to minimum 2023-09-13 09:47:55 +02:00
cpuidle cpuidle: psci: Move enabling OSI mode after power domains creation 2023-08-16 18:32:19 +02:00
crypto
cxl cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws() 2023-08-03 10:25:57 +02:00
dax
dca
devfreq
dio
dma idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM 2023-09-13 09:47:53 +02:00
dma-buf dma-buf/sw_sync: Avoid recursive lock during fence signal 2023-08-30 14:52:44 +02:00
edac
eisa
extcon
firewire firewire: net: fix use after free in fwnet_finish_incoming_packet() 2023-08-23 17:32:32 +02:00
firmware firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe 2023-09-06 21:25:32 +01:00
fpga
fsi fsi: master-ast-cf: Add MODULE_FIRMWARE macro 2023-09-06 21:25:32 +01:00
gnss
gpio gpiolib: fix reference leaks when removing GPIO chips still in use 2023-09-13 09:47:55 +02:00
gpu drm/amd/display: ensure async flips are only accepted for fast updates 2023-09-13 09:47:56 +02:00
greybus
hid HID: wacom: remove the battery when the EKR is off 2023-09-06 21:25:30 +01:00
hsi
hte
hv
hwmon hwmon: (aquacomputer_d5next) Add selective 200ms delay after sending ctrl report 2023-08-16 18:32:25 +02:00
hwspinlock
hwtracing
i2c i2c: imx-lpi2c: return -EINVAL when i2c peripheral clk doesn't work 2023-09-13 09:47:55 +02:00
i3c
idle
iio iio: light: bu27034: Fix scale format 2023-08-16 18:32:23 +02:00
infiniband RDMA/bnxt_re: consider timeout of destroy ah as success. 2023-08-23 17:32:28 +02:00
input Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PN 2023-09-13 09:47:56 +02:00
interconnect interconnect: qcom: sm8550: add enable_mask for bcm nodes 2023-08-16 18:32:23 +02:00
iommu iommu/amd: Introduce Disable IRTE Caching Support 2023-08-23 17:32:27 +02:00
ipack
irqchip irqchip/gic-v4.1: Properly lock VPEs when doing a directLPI invalidation 2023-08-03 10:26:09 +02:00
isdn mISDN: Update parameter type of dsp_cmx_send() 2023-08-16 18:32:25 +02:00
leds led: qcom-lpg: Fix resource leaks in for_each_available_child_of_node() loops 2023-08-23 17:32:30 +02:00
macintosh
mailbox
mcb
md dm cache policy smq: ensure IO doesn't prevent cleaner policy progress 2023-08-03 10:26:13 +02:00
media media: pci: cx23885: fix error handling for cx23885 ATSC boards 2023-09-13 09:47:50 +02:00
memory
memstick
message
mfd mfd: pm8008: Fix module autoloading 2023-07-23 13:54:01 +02:00
misc misc: rtsx: judge ASPM Mode to set PETXCFG Reg 2023-08-16 18:32:21 +02:00
mmc mmc: au1xmmc: force non-modular build and remove symbol_get usage 2023-09-06 21:25:29 +01:00
most
mtd mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op() 2023-08-11 12:14:27 +02:00
mux
net Revert "net: macsec: preserve ingress frame ordering" 2023-09-13 09:47:56 +02:00
nfc
ntb
nubus
nvdimm
nvme nvme-pci: add NVME_QUIRK_BOGUS_NID for Samsung PM9B1 256G and 512G 2023-08-16 18:32:18 +02:00
nvmem
of of: dynamic: Refactor action prints to not use "%pOF" inside devtree_lock 2023-08-30 14:52:41 +02:00
opp OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd() 2023-09-13 09:47:57 +02:00
parisc
parport
pci Revert "PCI: tegra194: Enable support for 256 Byte payload" 2023-09-13 09:47:56 +02:00
pcmcia pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db() 2023-08-23 17:32:31 +02:00
peci
perf perf: RISC-V: Remove PERF_HES_STOPPED flag checking in riscv_pmu_start() 2023-07-23 13:54:09 +02:00
phy phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code 2023-09-13 09:47:49 +02:00
pinctrl pinctrl: amd: Don't show Invalid config param errors 2023-09-06 21:25:33 +01:00
platform platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications 2023-09-13 09:47:55 +02:00
pnp
power
powercap powercap: arm_scmi: Remove recursion while parsing zones 2023-09-13 09:47:57 +02:00
pps
ps3
ptp
pwm pwm: meson: fix handling of period/duty if greater than UINT_MAX 2023-07-23 13:54:11 +02:00
rapidio
ras
regulator regulator: da9063: better fix null deref with partial DT 2023-08-23 17:32:52 +02:00
remoteproc
reset
rpmsg
rtc rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff 2023-09-06 21:25:29 +01:00
s390 s390/dasd: fix hanging device after request requeue 2023-09-13 09:47:51 +02:00
sbus
scsi scsi: qedi: Fix potential deadlock on &qedi_percpu->p_work_lock 2023-09-13 09:47:54 +02:00
sh
siox
slimbus
soc soc: aspeed: socinfo: Add kfree for kstrdup 2023-08-23 17:32:51 +02:00
soundwire soundwire: fix enumeration completion 2023-08-03 10:26:10 +02:00
spi spi: spi-cadence: Fix data corruption issues in slave mode 2023-08-30 14:52:34 +02:00
spmi
ssb
staging staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER 2023-09-13 09:47:52 +02:00
target
tc
tee
thermal thermal: core: constify params in thermal_zone_device_register 2023-09-13 09:47:50 +02:00
thunderbolt thunderbolt: Fix a backport error for display flickering issue 2023-09-02 09:14:38 +02:00
tty serial: sc16is7xx: fix bug when first setting GPIO direction 2023-09-06 21:25:32 +01:00
ufs scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW major version > 5 2023-08-30 14:52:43 +02:00
uio
usb usb: typec: tcpci: clear the fault status bit 2023-09-06 21:25:33 +01:00
vdpa vdpa/mlx5: Correct default number of queues when MQ is on 2023-09-13 09:47:54 +02:00
vfio
vhost vhost-scsi: Fix alignment handling with windows 2023-09-13 09:47:54 +02:00
video fbdev: goldfishfb: Do not check 0 for platform_get_irq() 2023-09-13 09:47:55 +02:00
virt
virtio virtio-mem: check if the config changed before fake offlining memory 2023-09-13 09:47:54 +02:00
vlynq
w1
watchdog watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub) 2023-08-23 17:32:32 +02:00
xen xen: speed up grant-table reclaim 2023-08-03 10:26:09 +02:00
zorro
Kconfig
Makefile