diff options
author | Kees Cook <keescook@chromium.org> | 2017-10-20 07:36:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-20 15:32:54 -0400 |
commit | 1c9fec470b81ca5e89391c20a11ead31a1e9314b (patch) | |
tree | 9a63ad70ff0ae15e6809cc916dac18577b0c0285 /drivers/dio | |
parent | 9a27ded2195aaec2041ed2525ba7f373c60920c7 (diff) |
waitid(): Avoid unbalanced user_access_end() on access_ok() error
As pointed out by Linus and David, the earlier waitid() fix resulted in
a (currently harmless) unbalanced user_access_end() call. This fixes it
to just directly return EFAULT on access_ok() failure.
Fixes: 96ca579a1ecc ("waitid(): Add missing access_ok() checks")
Acked-by: David Daney <david.daney@cavium.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions