diff options
author | Tarick Bedeir <tarick@google.com> | 2018-07-02 14:02:34 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-04 11:48:27 -0600 |
commit | f1228867adaf8890826f2b59e4caddb1c5cc2df7 (patch) | |
tree | cd4554fbbf1d33fa36878c4d7141838b4f6748bc /drivers/infiniband/hw/i40iw | |
parent | vmw_pvrdma: Release netdev when vmxnet3 module is removed (diff) | |
download | linux-dev-f1228867adaf8890826f2b59e4caddb1c5cc2df7.tar.xz linux-dev-f1228867adaf8890826f2b59e4caddb1c5cc2df7.zip |
IB/mlx4: Test port number before querying type.
rdma_ah_find_type() can reach into ib_device->port_immutable with a
potentially out-of-bounds port number, so check that the port number is
valid first.
Fixes: 44c58487d51a ("IB/core: Define 'ib' and 'roce' rdma_ah_attr types")
Signed-off-by: Tarick Bedeir <tarick@google.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw')
0 files changed, 0 insertions, 0 deletions