Re: [patch] IB/hfi1: fix copy_to/from_user() error handling

2015-09-18 Thread Doug Ledford
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

RE: [patch] IB/hfi1: fix copy_to/from_user() error handling

2015-09-15 Thread Marciniszyn, Mike
> Subject: [patch] IB/hfi1: fix copy_to/from_user() error handling > > 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