summaryrefslogtreecommitdiff
path: root/drivers/net/mhi_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mhi_net.c')
-rw-r--r--drivers/net/mhi_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c
index ff302144029d..3d322ac4f6a5 100644
--- a/drivers/net/mhi_net.c
+++ b/drivers/net/mhi_net.c
@@ -343,6 +343,8 @@ static void mhi_net_dellink(struct mhi_device *mhi_dev, struct net_device *ndev)
kfree_skb(mhi_netdev->skbagg_head);
+ free_netdev(ndev);
+
dev_set_drvdata(&mhi_dev->dev, NULL);
}