linux-yocto/drivers/misc
Chenyuan Yang a8d1b4f219 misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe()
[ Upstream commit a99b598d83 ]

The returned value, pfsm->miscdev.name, from devm_kasprintf()
could be NULL.
A pointer check is added to prevent potential NULL pointer dereference.
This is similar to the fix in commit 3027e7b15b
("ice: Fix some null pointer dereference issues in ice_ptp.c").

This issue is found by our static analysis tool.

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://lore.kernel.org/r/20250311010511.1028269-1-chenyuan0y@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:00:07 +02:00
..
altera-stapl
bcm-vk
c2port
cardreader Revert "drivers/card_reader/rtsx_usb: Restore interrupt based detection" 2025-03-13 12:58:33 +01:00
cb710
cxl
echo
eeprom eeprom: digsy_mtc: Make GPIO lookup table match the device 2025-03-13 12:58:37 +01:00
genwqe
ibmasm
lis3lv02d misc: lis3lv02d_i2c: Fix regulators getting en-/dis-abled twice on suspend/resume 2024-04-03 15:28:43 +02:00
lkdtm objtool, lkdtm: Obfuscate the do_nothing() pointer 2025-05-02 07:50:56 +02:00
mchp_pci1xxxx misc: microchip: pci1xxxx: Fix incorrect IRQ status handling during ack 2025-05-02 07:50:49 +02:00
mei mei: me: add panther lake H DID 2025-05-02 07:50:48 +02:00
ocxl
pvpanic misc/pvpanic-pci: register attributes via pci_driver 2024-06-12 11:12:35 +02:00
sgi-gru misc: sgi-gru: Don't disable preemption in GRU driver 2024-11-08 16:28:21 +01:00
sgi-xp
ti-st
uacce
vmw_vmci VMCI: fix race between vmci_host_setup_notify and vmci_ctx_unset_notify 2025-06-19 15:28:45 +02:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c misc: apds990x: Fix missing pm_runtime_disable() 2024-12-09 10:32:37 +01:00
apds9802als.c
atmel-ssc.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
dw-xdata-pcie.c
enclosure.c
fastrpc.c misc: fastrpc: Fix copy buffer page size 2025-02-17 09:40:39 +01:00
gehc-achc.c
hi6421v600-irq.c
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig
kgdbts.c
lattice-ecp3-config.c
Makefile
open-dice.c
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: Fix 'irq_type' to convey the correct type 2025-04-25 10:45:55 +02:00
phantom.c
qcom-coincell.c
smpro-errmon.c
smpro-misc.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tps6594-esm.c
tps6594-pfsm.c misc: tps6594-pfsm: Add NULL pointer check in tps6594_pfsm_probe() 2025-07-06 11:00:07 +02:00
tsl2550.c
vcpu_stall_detector.c
vmw_balloon.c
xilinx_sdfec.c
xilinx_tmr_inject.c
xilinx_tmr_manager.c