staging: sep: return -EFAULT on copy_from_user failure
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 27 Oct 2012 17:23:47 +0000 (13:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Oct 2012 21:59:39 +0000 (14:59 -0700)
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>

No differences found