IB/hfi1: Combine shift copy and byte copy for SGE reads
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Sun, 25 Sep 2016 14:41:39 +0000 (07:41 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 2 Oct 2016 12:42:14 +0000 (08:42 -0400)
commit61868fb5c2e5e17ea5dd81b98c258453e172e23d
tree1f7190807d0e3b6a79573c9d6539451406dca721
parenta4309d94f71067f622a1d4e65d8d0fc4710beefd
IB/hfi1: Combine shift copy and byte copy for SGE reads

Prevent over-reading the SGE length by using byte
reads for non quad-word reads.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/pio_copy.c