commit | fa6256db033067b57318decdc1c583512a1f8f68 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Feb 15 02:02:06 2017 +0300 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Mar 06 14:35:21 2017 +0100 |
tree | c0d0cbce48775859ff1800c2b0a3ca301e5eb13a | |
parent | 9ce9f7999741f342eeffd036ab09213a2fa93040 [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 <dan.carpenter@oracle.com> Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>