2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/drivers/misc/ti-st
Colin Ian King 0810f18fce ti-st: handle null allocation return correctly.
static analysis with smatch picked up the following error:

get_platform_data() error: potential null dereference 'dt_pdata'.
  (kzalloc returns null)

Instead, the code should return NULL to avoid the following null
pointer deference.  Also, remove the error message as it is
redundant, the caller emits an error message to alert of a
failure anyhow.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-24 12:16:47 -07:00
..
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile misc: ti-st: Kconfig & Makefile for TI_ST 2010-10-06 08:27:00 -07:00
st_core.c drivers:misc:ti-st: protect against bad packets 2015-01-12 05:04:11 -08:00
st_kim.c ti-st: handle null allocation return correctly. 2015-05-24 12:16:47 -07:00
st_ll.c ti-st: add device tree support 2015-01-12 05:04:10 -08:00