summaryrefslogtreecommitdiffstats
path: root/lib/dma-virt.c
diff options
context:
space:
mode:
authorKaike Wan <kaike.wan@intel.com>2018-05-31 20:30:17 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-06-04 21:33:16 +0200
commitf9458bc2c1303bcbd02645de0d59e4b0210c669a (patch)
tree124b19317d8046fe398338455f6b5f97aa076030 /lib/dma-virt.c
parentIB/hfi1: Fix user context tail allocation for DMA_RTAIL (diff)
downloadlinux-f9458bc2c1303bcbd02645de0d59e4b0210c669a.tar.xz
linux-f9458bc2c1303bcbd02645de0d59e4b0210c669a.zip
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>
Diffstat (limited to 'lib/dma-virt.c')
0 files changed, 0 insertions, 0 deletions