commit | e1df0068a24ba56673183cc3bd392d8bc301d423 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Sep 15 13:35:25 2015 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Fri Sep 18 11:28:47 2015 -0400 |
tree | e607044c89eee498d0718100f2b3dc528299f9aa | |
parent | aadfc3b2042d69a6b4b8d719d4221b988d7f31a5 [diff] |
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 to fill /var/log/messages with spam. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>