summaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-08-18 14:31:35 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-21 10:57:38 -0700
commite65a4955b0bb70ab66e2fbfd5509747fe51d8bf9 (patch)
tree6148a7720992d25315653e3b83517633e41737e1 /net/tipc/bearer.c
parent4832c30d5458387ff2533ff66fbde26ad8bb5a2d (diff)
downloadlinux-e65a4955b0bb70ab66e2fbfd5509747fe51d8bf9.tar.bz2
net: check type when freeing metadata dst
Commit 3fcece12bc1b ("net: store port/representator id in metadata_dst") added a new type field to metadata_dst, but metadata_dst_free() wasn't updated to check it before freeing the METADATA_IP_TUNNEL specific dst cache entry. This is not currently causing problems since it's far enough back in the struct to be zeroed for the only other type currently in existance (METADATA_HW_PORT_MUX), but nevertheless it's not correct. Fixes: 3fcece12bc1b ("net: store port/representator id in metadata_dst") Signed-off-by: David Lamparter <equinox@diac24.net> Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Cc: Sridhar Samudrala <sridhar.samudrala@intel.com> Cc: Simon Horman <horms@verge.net.au> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bearer.c')
0 files changed, 0 insertions, 0 deletions