linux_dsm_epyc7002/drivers/net/ieee802154
Colin Ian King 941825e114 ieee802154: ca8210: Add checks for kmalloc allocation failures
Ensure we don't end up with a null pointer dereferences by checking
for for allocation failures.  Allocate by sizeof(*ptr) rather than
the type to fix checkpack warnings.  Also merge multiple lines into
one line for the kmalloc call.

Detected by CoverityScan, CID#1422435 ("Dereference null return value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2017-04-12 22:02:39 +02:00
..
adf7242.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-26 23:42:21 -05:00
at86rf230.c at86rf230: Allow slow GPIO pins for "rstn" 2017-01-12 22:12:43 +01:00
at86rf230.h at86rf230: add debugfs support 2015-09-17 13:20:05 +02:00
atusb.c ieee802154: atusb: fix driver to work with older firmware versions 2017-01-12 22:12:43 +01:00
atusb.h ieee802154: atusb: sync header file from firmware for new features 2016-12-08 07:43:29 +01:00
ca8210.c ieee802154: ca8210: Add checks for kmalloc allocation failures 2017-04-12 22:02:39 +02:00
cc2520.c ieee802154: cc2520: Check CRC & add promiscuous 2016-01-03 09:17:42 +01:00
fakelb.c ieee802154: fakelb: print number of created fake devices during probe 2016-11-30 12:33:07 +01:00
Kconfig ieee802154: Add CA8210 IEEE 802.15.4 device driver 2017-04-12 22:02:38 +02:00
Makefile ieee802154: Add CA8210 IEEE 802.15.4 device driver 2017-04-12 22:02:38 +02:00
mrf24j40.c net: break include loop netdevice.h, dsa.h, devlink.h 2017-03-28 22:46:04 -07:00