commit | f9458bc2c1303bcbd02645de0d59e4b0210c669a | [log] [tgz] |
---|---|---|
author | Kaike Wan <kaike.wan@intel.com> | Thu May 31 11:30:17 2018 -0700 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Mon Jun 04 13:33:16 2018 -0600 |
tree | 124b19317d8046fe398338455f6b5f97aa076030 | |
parent | 1bc0299d976e000ececc6acd76e33b4582646cb7 [diff] |
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: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>