]> err.no Git - linux-2.6/commitdiff
atm: Do not free already unregistered net device.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 5 May 2008 01:00:05 +0000 (18:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2008 01:00:05 +0000 (18:00 -0700)
Both br2684_push and br2684_exit do so, but unregister_netdev()
releases the device itself.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/br2684.c

index 1b228065e745c812ee8db3d6ca0b3bb68586b796..3a74ff8ca45dd0198ff72be2353b054d7c7a86a1 100644 (file)
@@ -350,7 +350,6 @@ static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
                        list_del(&brdev->br2684_devs);
                        read_unlock(&devs_lock);
                        unregister_netdev(net_dev);
-                       free_netdev(net_dev);
                }
                return;
        }
@@ -771,7 +770,6 @@ static void __exit br2684_exit(void)
 
                list_del(&brdev->br2684_devs);
                unregister_netdev(net_dev);
-               free_netdev(net_dev);
        }
 }