Staging: solo6x10: return -EFAULT on copy_to_user errors
authorDan Carpenter <error27@gmail.com>
Tue, 10 Aug 2010 06:09:05 +0000 (08:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 21:51:53 +0000 (14:51 -0700)
commit6a4ca0399255260bb04fa4e718625ede0c745e59
tree1cc2ade02b241a508820e82c03bd1c20190b0690
parentc7e62defd3c4a015b1f80a642bc320b9f9f3896c
Staging: solo6x10: return -EFAULT on copy_to_user errors

copy_to_user() returns the number of bytes remaining to be copied, but
we want to return a negative error code here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/solo6x10/solo6010-g723.c