Files
linux/net/ipv4
Dan Carpenter de7b2efacf udp_tunnel: Fix end of loop test in udp_tunnel_nic_unregister()
This test is checking if we exited the list via break or not.  However
if it did not exit via a break then "node" does not point to a valid
udp_tunnel_nic_shared_node struct.  It will work because of the way
the structs are laid out it's the equivalent of
"if (info->shared->udp_tunnel_nic_info != dev)" which will always be
true, but it's not the right way to test.

Fixes: 74cc6d182d ("udp_tunnel: add the ability to share port tables")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-02-23 12:35:00 +00:00
..
2021-11-22 14:34:07 +00:00
2021-05-17 15:29:35 -07:00
2021-11-14 12:20:44 +00:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-05-17 15:29:35 -07:00
2021-11-16 19:07:54 -08:00
2020-03-16 18:26:54 -07:00
2021-03-28 17:31:13 -07:00
2021-05-17 15:29:35 -07:00
2022-01-22 08:33:37 +02:00
2021-05-17 15:29:35 -07:00