diff options
author | 2015-09-15 13:35:25 +0300 | |
---|---|---|
committer | 2015-09-18 11:28:47 -0400 | |
commit | e1df0068a24ba56673183cc3bd392d8bc301d423 (patch) | |
tree | e607044c89eee498d0718100f2b3dc528299f9aa /tools/perf/scripts/python | |
parent | IB/hfi1: fix pstateinfo from returning improperly byteswapped value (diff) | |
download | linux-dev-e1df0068a24ba56673183cc3bd392d8bc301d423.tar.xz linux-dev-e1df0068a24ba56673183cc3bd392d8bc301d423.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions