]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Ensure VL index is within bounds
authorKaike Wan <kaike.wan@intel.com>
Thu, 31 May 2018 18:30:17 +0000 (11:30 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Jun 2018 19:33:16 +0000 (13:33 -0600)
commitb3ab24305ca6891abea478fe3f9a05ab7cb4a8ed
tree124b19317d8046fe398338455f6b5f97aa076030
parent360f1818d6b2a6a200a53ff3b8f9562dd5db74f6
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>
drivers/infiniband/hw/hfi1/sdma.c