summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-07-01 15:57:02 -0700
committerDoug Ledford <dledford@redhat.com>2016-07-12 10:46:24 -0400
commit896ce45da2c2f4abc508d443fdecde7de0b3fa7e (patch)
tree4e83c3712ac135406a6d57a999e6ff8a5d5c71a6 /scripts
parent9903fd1374e913f5086b58af09d4e3fd6e9e86fe (diff)
downloadlinux-896ce45da2c2f4abc508d443fdecde7de0b3fa7e.tar.bz2
IB/hfi1: Correct issues with sc5 computation
There are several computatations of the sc in the ud receive routine. Besides the code duplication, all are wrong when the sc is greater than 15. In that case the code incorrectly or's a 1 into the computed sc instead of 1 shifted left by 4. Fix precomputed sc5 by using an already implemented routine hdr2sc() and deleting flawed duplicated code. Cc: Stable <stable@vger.kernel.org> # 4.6+ Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions