diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-02-22 16:42:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-23 12:35:00 +0000 |
commit | de7b2efacf4e83954aed3f029d347dfc0b7a4f49 (patch) | |
tree | 58d477ad157b3fb31785e9c74528e9dc4dd1850b /net/tipc | |
parent | a58da53ffd70294ebea8ecd0eb45fd0d74add9f9 (diff) | |
download | linux-stable-de7b2efacf4e83954aed3f029d347dfc0b7a4f49.tar.gz linux-stable-de7b2efacf4e83954aed3f029d347dfc0b7a4f49.tar.bz2 linux-stable-de7b2efacf4e83954aed3f029d347dfc0b7a4f49.zip |
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: 74cc6d182d03 ("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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions