Commit 1b1b7dc2 authored by Dave Jones's avatar Dave Jones Committed by David S. Miller

[NETROM]: Fix netdevice leak, from 2.4.x

parent ff70721a
...@@ -76,6 +76,9 @@ static void nr_loopback_timer(unsigned long param) ...@@ -76,6 +76,9 @@ static void nr_loopback_timer(unsigned long param)
if (dev == NULL || nr_rx_frame(skb, dev) == 0) if (dev == NULL || nr_rx_frame(skb, dev) == 0)
kfree_skb(skb); kfree_skb(skb);
if (dev != NULL)
dev_put(dev);
if (!skb_queue_empty(&loopback_queue) && !nr_loopback_running()) if (!skb_queue_empty(&loopback_queue) && !nr_loopback_running())
nr_set_loopback_timer(); nr_set_loopback_timer();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment