mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
Writing to /proc/$pid/coredump_filter always returns -ESRCH because commit774636e19e("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:774636e19e("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]>