linux/drivers/staging
William Dean 5694b162f2 pinctrl: ralink: Check for null return of devm_kcalloc
[ Upstream commit c3b821e8e4 ]

Because of the possible failure of the allocation, data->domains might
be NULL pointer and will cause the dereference of the NULL pointer
later.
Therefore, it might be better to check it and directly return -ENOMEM
without releasing data manually if fails, because the comment of the
devm_kmalloc() says "Memory allocated with this function is
automatically freed on driver detach.".

Fixes: a86854d0c5 ("treewide: devm_kzalloc() -> devm_kcalloc()")
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: William Dean <williamsukatube@gmail.com>
Link: https://lore.kernel.org/r/20220710154922.2610876-1-williamsukatube@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-29 17:19:11 +02:00
..
android staging: ion: Prevent incorrect reference counting behavour 2022-04-27 13:53:57 +02:00
axis-fifo
board
clocking-wizard
comedi comedi: vmk80xx: fix expression for tx buffer size 2022-06-22 14:13:18 +02:00
emxx_udc
fbtft staging: fbtft: fb_st7789v: reset display before initialization 2022-03-28 09:57:08 +02:00
fieldbus staging: fieldbus: Fix the error handling path in anybuss_host_common_probe() 2022-06-14 18:32:31 +02:00
fsl-dpaa2
fwserial
gasket
gdm724x staging: gdm724x: fix use after free in gdm_lte_rx() 2022-03-16 14:16:01 +01:00
goldfish
greybus staging: greybus: codecs: fix type confusion of list iterator variable 2022-06-14 18:32:30 +02:00
gs_fpgaboot
hikey9xx
iio staging:iio:adc:ad7280a: Fix handing of device address bit reversing. 2022-04-08 14:40:24 +02:00
kpc2000
ks7010 staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-11-18 14:04:18 +01:00
media media: rkvdec: h264: Fix bit depth wrap in pps packet 2022-06-09 10:21:10 +02:00
most staging: most: dim2: use device release method 2021-12-17 10:14:40 +01:00
mt7621-dma
mt7621-dts staging: mt7621-dts: fix pinctrl-0 items to be size-1 items on ethernet 2022-04-08 14:40:42 +02:00
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl pinctrl: ralink: Check for null return of devm_kcalloc 2022-07-29 17:19:11 +02:00
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu
rtl8192e drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop() 2022-06-14 18:32:42 +02:00
rtl8192u drivers: staging: rtl8192u: Fix deadlock in ieee80211_beacons_stop() 2022-06-14 18:32:42 +02:00
rtl8712 staging: rtl8712: fix uninit-value in r871xu_drv_init() 2022-06-14 18:32:43 +02:00
rtl8723bs staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan() 2022-05-30 09:33:22 +02:00
rts5208
sm750fb
unisys
vc04_services staging: vchiq_core: handle NULL result of find_service_by_handle 2022-04-13 21:01:01 +02:00
vme
vt6655
vt6656
wfx staging: wfx: fix an error handling in wfx_init_common() 2022-04-13 21:01:01 +02:00
wlan-ng staging: wlan-ng: Avoid bitwise vs logical OR warning in hfa384x_usb_throttlefn() 2022-01-16 09:14:24 +01:00
Kconfig
Makefile