commit | 978fdc22bae06ea7422d7660ac78ed1c1c9c3e2a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Sep 15 13:35:25 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Sep 15 06:40:57 2015 -0700 |
tree | c939c9df2eec4ea6c1d908c31cfd5f70292982e3 | |
parent | adad44d1322c6657a96fa1681ded9bb0c3bd56f0 [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> Cc: Mike Marciniszyn <infinipath@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>