aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLino Sanfilippo <[email protected]>2016-07-15 00:13:56 +0200
committerGreg Kroah-Hartman <[email protected]>2016-08-21 17:58:18 +0200
commit7ed4eb5168325e52b5d6be277555b36877955c66 (patch)
tree3cb2d5ce1e67ef8f9016a93ea1a89eba797861d1 /tools/perf/scripts/python/netdev-times.py
parentf56edd42ee69ea73e1ca755614ed6c0e1a6ccef8 (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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions