aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorSudip Mukherjee <[email protected]>2015-09-23 13:32:32 +0000
committerJames Bottomley <[email protected]>2015-11-10 01:08:03 +0000
commite79504236548e4c909959ba444f87a12224555ac (patch)
tree645f887cadd3c3fefd4c697d83a2d3c0dc3be9af /drivers/fpga/fpga-mgr.c
parentfcoe: use continue instead of goto+label (diff)
downloadkernel-e79504236548e4c909959ba444f87a12224555ac.tar.gz
kernel-e79504236548e4c909959ba444f87a12224555ac.zip
lpfc: fix memory leak and NULL dereference
kmalloc() can return NULL and without checking we were dereferencing it. Moreover if kmalloc succeeds but the function fails in other parts then we were returning the error code but we missed freeing lcb_context. While at it fixed one related checkpatch warning. Signed-off-by: Sudip Mukherjee <[email protected]> Reviewed-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions