Skip to content
Commit 7a5c938b authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

IB/core: Check for rdma_protocol_ib only after validating port_num



port_num is untrusted data from the user, so it should be checked after
calling fill_sgid_attr, which validates it.

Fixes: 8d9ec9ad ("IB/core: Add a sgid_attr pointer to struct rdma_ah_attr")
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 5e62d5ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment