mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
941825e114
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> |
||
---|---|---|
.. | ||
adf7242.c | ||
at86rf230.c | ||
at86rf230.h | ||
atusb.c | ||
atusb.h | ||
ca8210.c | ||
cc2520.c | ||
fakelb.c | ||
Kconfig | ||
Makefile | ||
mrf24j40.c |