From 77206574a21d406f6098b604c6e0774116afdb91 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 29 Jun 2014 23:27:29 +0200 Subject: [PATCH] interface: clean up l3 device reference on remove/reload Signed-off-by: Felix Fietkau --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.c b/interface.c index 1f83be3..ea25208 100644 --- a/interface.c +++ b/interface.c @@ -509,8 +509,8 @@ interface_cleanup_state(struct interface *iface) interface_clear_errors(iface); interface_set_proto_state(iface, NULL); - if (iface->main_dev.dev) - interface_set_main_dev(iface, NULL); + interface_set_main_dev(iface, NULL); + interface_set_l3_dev(iface, NULL); } static void -- 2.25.1