aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2015-09-30 12:36:31 +0000
committerGreg Kroah-Hartman <[email protected]>2015-10-04 11:09:43 +0000
commitfb727077b04f768d0c79d9aa29e958262a9e3d9e (patch)
treec2e6b283f38ec0aa7cdf790bae2b941901b41b5e /drivers/fpga/fpga-mgr.c
parentnvmem: core: Fix memory leak in nvmem_cell_write (diff)
downloadkernel-fb727077b04f768d0c79d9aa29e958262a9e3d9e.tar.gz
kernel-fb727077b04f768d0c79d9aa29e958262a9e3d9e.zip
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 <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions