aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2016-07-15 00:13:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-21 17:58:18 +0200
commit7ed4eb5168325e52b5d6be277555b36877955c66 (patch)
tree3cb2d5ce1e67ef8f9016a93ea1a89eba797861d1 /include/linux/debugobjects.h
parentstaging: dgnc: fix 'line over 80 characters' (diff)
staging: slicoss: handle allocation failure in slic_init_adapter
The memory allocation in slic_init_adapter() can fail. Return an error in this case and unwind properly. Also make sure that the allocated memory is properly freed in case of an error in the calling probe() function. By doing this also replace the alloc() followed by memset to zero the memory with a zalloc() version. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions