diff options
author | Parav Pandit <[email protected]> | 2018-01-09 15:58:54 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2018-01-22 11:39:50 -0700 |
commit | 00db63c128dd3daf38f481371976c24d32678142 (patch) | |
tree | f868d1780f32dcdd1b46d2b695f5fb1fd62d9546 /lib/mpi/mpi-inline.h | |
parent | 10bea9c8730477ab97ec2e1f590aff52cf8e4e0e (diff) |
RDMA/cma: Check existence of netdevice during port validation
If valid netdevice is not found for RoCE, GID table should not be
searched with NULL netdevice.
Doing so causes the search routines to ignore the netdev argument and may
match the wrong GID table entry if the netdev is deleted.
Fixes: abae1b71dd37 ("IB/cma: cma_validate_port should verify the port and netdevice")
Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions