[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <481D67C7.5050909@openvz.org>
Date: Sun, 04 May 2008 11:37:43 +0400
From: Pavel Emelyanov <xemul@...nvz.org>
To: Chas Williams <chas@....nrl.navy.mil>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: [PATCH 1/2][ATM]: Do not free already unregistered net device.
Both br2684_push and br2684_exit do so, but unregister_netdev()
releases the device itself.
Signed-off-by: Pavel Emelyanov <xemul@...nvz.org>
---
net/atm/br2684.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 1b22806..3a74ff8 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -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);
}
}
--
1.5.3.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists