Skip to content

Commit e62e51a

Browse files
pjvuurendavem330
authored andcommitted
nfp: flower: free dst_entry in route table
We need to release the refcnt on dst_entry in the route table, otherwise we will leak the route. Fixes: 8e6a904 ("nfp: flower vxlan neighbour offload") Signed-off-by: Pieter Jansen van Vuuren <[email protected]> Signed-off-by: Louis Peens <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fe06a64 commit e62e51a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ nfp_tun_neigh_event_handler(struct notifier_block *nb, unsigned long event,
381381
err = PTR_ERR_OR_ZERO(rt);
382382
if (err)
383383
return NOTIFY_DONE;
384+
385+
ip_rt_put(rt);
384386
#else
385387
return NOTIFY_DONE;
386388
#endif

0 commit comments

Comments
 (0)