diff options
author | Håkon Bugge <[email protected]> | 2022-10-12 16:15:42 +0200 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2022-10-19 10:02:52 +0300 |
commit | eb83f502adb036cd56c27e13b9ca3b2aabfa790b (patch) | |
tree | 0cfa9e1f9eb3ba5beeedef5850186de9163a2327 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
RDMA/cma: Use output interface for net_dev check
Commit 27cfde795a96 ("RDMA/cma: Fix arguments order in net device
validation") swapped the src and dst addresses in the call to
validate_net_dev().
As a consequence, the test in validate_ipv4_net_dev() to see if the
net_dev is the right one, is incorrect for port 1 <-> 2 communication when
the ports are on the same sub-net. This is fixed by denoting the
flowi4_oif as the device instead of the incoming one.
The bug has not been observed using IPv6 addresses.
Fixes: 27cfde795a96 ("RDMA/cma: Fix arguments order in net device validation")
Signed-off-by: Håkon Bugge <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions