aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/x25_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/x25/x25_route.c')
-rw-r--r--net/x25/x25_route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c
index 2a3fe986b245..883a848bca5b 100644
--- a/net/x25/x25_route.c
+++ b/net/x25/x25_route.c
@@ -119,6 +119,9 @@ void x25_route_device_down(struct net_device *dev)
__x25_remove_route(rt);
}
write_unlock_bh(&x25_route_list_lock);
+
+ /* Remove any related forwarding */
+ x25_clear_forward_by_dev(dev);
}
/*