]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Ensure VL index is within bounds
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Tue, 21 Mar 2017 00:26:07 +0000 (17:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 18:45:09 +0000 (14:45 -0400)
commit93886f3ed4d4888926a1c0f5c7bbf9fbeacd35f5
tree0aaef7407cd748137f51988caf243a9b58c62a08
parentaaa21b9506f03ec862a8a83d69b09c2f6ed731f7
IB/hfi1: Ensure VL index is within bounds

Improve the safety of the code and ensure the array cannot be indexed
out of bounds when picking the CPU for a given SDMA engine.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/sdma.c