aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-02-15 02:02:06 +0300
committerLinus Walleij <[email protected]>2017-03-06 14:35:21 +0100
commitfa6256db033067b57318decdc1c583512a1f8f68 (patch)
treec0d0cbce48775859ff1800c2b0a3ca301e5eb13a /lib/memory-notifier-error-inject.c
parent9ce9f7999741f342eeffd036ab09213a2fa93040 (diff)
gpio: mockup: return -EFAULT if copy_from_user() fails
copy_from_user() returns the number of bytes remaining to be copied but we want to return negative error codes on failue. Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over debugfs") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions