aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-02-14 23:02:06 +0000
committerLinus Walleij <[email protected]>2017-03-06 13:35:21 +0000
commitfa6256db033067b57318decdc1c583512a1f8f68 (patch)
treec0d0cbce48775859ff1800c2b0a3ca301e5eb13a /net/unix/garbage.c
parentgpio: altera-a10sr: Set gpio_chip parent property (diff)
downloadkernel-fa6256db033067b57318decdc1c583512a1f8f68.tar.gz
kernel-fa6256db033067b57318decdc1c583512a1f8f68.zip
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 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions