Re: [patch] isdn/kcapi: return -EFAULT on copy_from_user errors

David Miller
2010-06-03T10:29:16Z

From: Dan Carpenter <error27@gmail.com>
Date: Thu, 3 Jun 2010 11:56:13 +0200

> copy_from_user() returns the number of bytes remaining but we should
> return -EFAULT here. The error code gets returned to the user. Both
> old_capi_manufacturer() and capi20_manufacturer() had other places
> that already returned -EFAULT so this won't break anything.
>
> Signed-off-by: Dan Carpenter <error27@gmail.com>

Applied.