linux/drivers/nvmem
Maxime Ripard fb727077b0 nvmem: sunxi: Check for memory allocation failure
The sunxi_sid driver doesn't check for kmalloc return status before
derefencing the returned pointer, which could lead to a NULL pointer
dereference if kmalloc failed. Check for its return code to make sure it
deosn't happen.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 12:09:43 +01:00
..
core.c nvmem: core: Fix memory leak in nvmem_cell_write 2015-10-04 12:09:43 +01:00
Kconfig nvmem: sunxi: Move the SID driver to the nvmem framework 2015-08-05 13:44:24 -07:00
Makefile nvmem: sunxi: Move the SID driver to the nvmem framework 2015-08-05 13:44:24 -07:00
qfprom.c nvmem: qfprom: Add Qualcomm QFPROM support. 2015-08-05 13:44:23 -07:00
sunxi_sid.c nvmem: sunxi: Check for memory allocation failure 2015-10-04 12:09:43 +01:00