aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2016-12-03 08:56:49 +0000
committerGreg Kroah-Hartman <[email protected]>2017-01-11 08:11:39 +0000
commit5b11ebedd6a8bb4271b796e498cd15c0fe1133b6 (patch)
treec0b0c61921982c62c49ec4824616a646409237dd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrivers: char: mem: Fix thinkos in kmem address checks (diff)
downloadkernel-5b11ebedd6a8bb4271b796e498cd15c0fe1133b6.tar.gz
kernel-5b11ebedd6a8bb4271b796e498cd15c0fe1133b6.zip
extcon: return error code on failure
Function get_zeroed_page() returns a NULL pointer if there is no enough memory. In function extcon_sync(), it returns 0 if the call to get_zeroed_page() fails. The return value 0 indicates success in the context, which is incosistent with the execution status. This patch fixes the bug by returning -ENOMEM. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188611 Signed-off-by: Pan Bian <[email protected]> Fixes: a580982f0836e Cc: stable <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions