diff options
author | Dean Luick <dean.luick@intel.com> | 2016-02-18 20:12:51 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-11 02:45:45 +0100 |
commit | 7b47622d784311bff8218d03754fbf20529c1a71 (patch) | |
tree | 57f6a3bbbc296040c31c1e4ed60684905dab2b3b /drivers/infiniband/sw | |
parent | IB/rdamvt: fix cross build with rdmavt (diff) | |
download | linux-7b47622d784311bff8218d03754fbf20529c1a71.tar.xz linux-7b47622d784311bff8218d03754fbf20529c1a71.zip |
staging/rdma/hfi1: Guard i2c access against cp
An attempt to cp or cat /sys/kernel/debug/hfi1/hfi1_0/i2c1
produces this message:
hfi1 0000:81:00.0: hfi1_0: IB0:1 I2C failed even retrying
Fix the issue by explicitly rejecting a simple cat/cp with an
-EINVAL error return.
Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw')
0 files changed, 0 insertions, 0 deletions