diff options
author | Nicholas Mc Guire <[email protected]> | 2018-12-14 17:56:10 +0100 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2018-12-18 10:23:07 +0100 |
commit | 5f30b2e823484ce6a79f2b59901b6351c15effa6 (patch) | |
tree | 4bafe61acde2fdb571e39eea272b3ca09b3be520 /drivers/hwtracing/coresight/coresight-cpu-debug.c | |
parent | 3933ec73cd9bbff4a98259d0eae606af4e2850a2 (diff) |
livepatch: check kzalloc return values
kzalloc() return should always be checked - notably in example code
where this may be seen as reference. On failure of allocation in
livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous
allocation is freed (thanks to Petr Mladek <[email protected]> for
catching this) and NULL returned.
Signed-off-by: Nicholas Mc Guire <[email protected]>
Fixes: 439e7271dc2b ("livepatch: introduce shadow variable API")
Acked-by: Joe Lawrence <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Acked-by: Miroslav Benes <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-cpu-debug.c')
0 files changed, 0 insertions, 0 deletions