Skip to content
Commit fa6256db authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Walleij
Browse files

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: 9202ba23 ("gpio: mockup: implement event injecting over debugfs")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9ce9f799
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment