aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2015-12-18 22:22:01 +0000
committerLinus Torvalds <[email protected]>2015-12-18 22:25:40 +0000
commit41a0c249cb8706a2efa1ab3d59466b23a27d0c8b (patch)
tree46e4739253a5199799a9f4b7daa634f4217f06ad /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadkernel-41a0c249cb8706a2efa1ab3d59466b23a27d0c8b.tar.gz
kernel-41a0c249cb8706a2efa1ab3d59466b23a27d0c8b.zip
proc: fix -ESRCH error when writing to /proc/$pid/coredump_filter
Writing to /proc/$pid/coredump_filter always returns -ESRCH because commit 774636e19ed51 ("proc: convert to kstrto*()/kstrto*_from_user()") removed the setting of ret after the get_proc_task call and incorrectly left it as -ESRCH. Instead, return 0 when successful. Example breakage: echo 0 > /proc/self/coredump_filter bash: echo: write error: No such process Fixes: 774636e19ed51 ("proc: convert to kstrto*()/kstrto*_from_user()") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: <[email protected]> [4.3+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions