diff options
| author | Devendra Naga <devendra.aaru@gmail.com> | 2012-10-27 21:23:47 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-30 01:59:39 +0400 |
| commit | b58d6021d4dbc215dc975510bb2509e66e6061be (patch) | |
| tree | 6541ed2e66a5b5ddb100f215741a3578ab40aef8 /scripts/basic | |
| parent | 28c4ff643549f18a6c50df694ce4ba9975b7917f (diff) | |
| download | linux-b58d6021d4dbc215dc975510bb2509e66e6061be.tar.xz | |
staging: sep: return -EFAULT on copy_from_user failure
copy_from_user() returns the number of bytes remaining to be copied,
and it fails if user pointer is invalid, so return -EFAULT
so that the user gets a FAULT.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
