aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/chip.c
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2018-09-26 10:55:53 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-09-30 19:21:12 -0600
commit3144533bf667c8e53bb20656b78295960073e57b (patch)
tree6fe22e4e9a524e1db802c354607e1ba2e9f20c17 /drivers/infiniband/hw/hfi1/chip.c
parentIB/hfi1: Add static trace for iowait (diff)
downloadlinux-dev-3144533bf667c8e53bb20656b78295960073e57b.tar.xz
linux-dev-3144533bf667c8e53bb20656b78295960073e57b.zip
IB/hfi1: Ensure ucast_dlid access doesnt exceed bounds
The dlid assignment made by looking into the u_ucast_dlid array does not do an explicit check for the size of the array. The code path to arrive at def_port, the index value is long and complicated so its best to just have an explicit check here. Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions