aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorNicholas Mc Guire <[email protected]>2018-12-14 16:56:10 +0000
committerJiri Kosina <[email protected]>2018-12-18 09:23:07 +0000
commit5f30b2e823484ce6a79f2b59901b6351c15effa6 (patch)
tree4bafe61acde2fdb571e39eea272b3ca09b3be520 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadkernel-5f30b2e823484ce6a79f2b59901b6351c15effa6.tar.gz
kernel-5f30b2e823484ce6a79f2b59901b6351c15effa6.zip
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/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions