[patch] IB/hfi1: fix copy_to/from_user() error handling
Doug Ledford
dledford at redhat.com
Fri Sep 18 15:50:10 UTC 2015
On 09/15/2015 06:35 AM, Dan Carpenter wrote:
> copy_to/from_user() returns the number of bytes which we were not able
> to copy. It doesn't return an error code.
>
> Also a couple places had a printk() on error and I removed that because
> people can take advantage of it to fill /var/log/messages with spam.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
Thanks, applied.
--
Doug Ledford <dledford at redhat.com>
GPG KeyID: 0E572FDD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20150918/a043c8c4/attachment.asc>
More information about the devel
mailing list