linux-stable/drivers/staging
Michael Straube 84e4e56c9a staging: pi433: fix potential null dereference
[ Upstream commit 64c4c4ca6c ]

Add a test for successful call to cdev_alloc() to avoid
potential null dereference. Issue reported by smatch.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Fixes: 874bcba65f ("staging: pi433: New driver")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:46:00 +01:00
..
android staging: android: ashmem: Fix mmap size validation 2018-10-03 17:00:50 -07:00
board
ccree staging: ccree: check DMA pool buf !NULL before free 2018-10-20 09:48:53 +02:00
clocking-wizard
comedi staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice 2018-09-15 09:45:31 +02:00
dgnc
emxx_udc
fbtft
fsl-dpaa2 staging: fsl-dpaa2/eth: Fix incorrect casts 2018-05-25 16:17:43 +02:00
fsl-mc irqchip/gic-v3: Ignore disabled ITS nodes 2018-04-26 11:02:20 +02:00
fwserial
gdm724x
goldfish
greybus
gs_fpgaboot
iio staging: iio: ad7780: update voltage on read 2019-02-12 19:45:58 +01:00
irda irda: Only insert new objects into the global database via setsockopt 2018-09-15 09:45:36 +02:00
ks7010 staging: ks7010: Use constants from ieee80211_eid instead of literal ints. 2018-05-25 16:17:43 +02:00
lustre Staging: lustre: remove two build warnings 2018-12-13 09:18:52 +01:00
media staging: atomisp: remove "fun" strncpy warning 2018-12-13 09:18:53 +01:00
most
mt29f_spinand
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433 staging: pi433: fix potential null dereference 2019-02-12 19:46:00 +01:00
rtl8188eu staging: rtl8188eu: Add device code for D-Link DWA-121 rev B1 2019-01-31 08:13:43 +01:00
rtl8192e
rtl8192u staging: rtl8192u: return -ENOMEM on failed allocation of priv->oldaddr 2018-05-25 16:17:43 +02:00
rtl8712 staging: rtl8712: Fix possible buffer overrun 2018-12-13 09:18:53 +01:00
rtl8723bs staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()' 2018-12-17 09:28:48 +01:00
rtlwifi staging: r8822be: Fix RTL8822be can't find any wireless AP 2018-07-17 11:39:24 +02:00
rts5208 staging: rts5208: fix gcc-8 logic error warning 2018-12-08 13:03:35 +01:00
skein
sm750fb
speakup staging: speakup: Replace strncpy with memcpy 2018-12-17 09:28:55 +01:00
typec typec: tcpm: Fix a msecs vs jiffies bug 2018-08-24 13:09:06 +02:00
unisys
vboxvideo
vc04_services staging: vchiq_arm: fix compat VCHIQ_IOC_AWAIT_COMPLETION 2018-12-05 19:41:25 +01:00
vme
vt6655
vt6656
wilc1000 staging: wilc1000: fix missing read_write setting when reading data 2019-01-09 17:14:48 +01:00
wlan-ng
xgifb
Kconfig
Makefile