diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 5611b75210208cd3594922ede88f7c13c393cf3f..8634ce6771421c203e82ebd9fd90aa4bb2d24930 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -332,6 +332,7 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void return xfrm_dev_feat_change(dev); case NETDEV_DOWN: + case NETDEV_UNREGISTER: return xfrm_dev_down(dev); } return NOTIFY_DONE;