netdev
[Top] [All Lists]

[PATCH] (5/4) dlci netdevice event handling

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH] (5/4) dlci netdevice event handling
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Mon, 8 Sep 2003 14:39:29 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20030908141445.5a5c0d42.shemminger@xxxxxxxx>
Organization: Open Source Development Lab
References: <20030908141445.5a5c0d42.shemminger@xxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
One more patch, found this in testing
 -- need to delete device from list when unregistered
because of callback.

diff -Nru a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c
--- a/drivers/net/wan/dlci.c    Mon Sep  8 14:39:14 2003
+++ b/drivers/net/wan/dlci.c    Mon Sep  8 14:39:14 2003
@@ -520,6 +520,7 @@
 
                list_for_each_entry(dlp, &dlci_devs, list) {
                        if (dlp->slave == dev) {
+                               list_del(&dlp->list);
                                unregister_netdevice(dlp->master);
                                dev_put(dlp->slave);
                                break;

<Prev in Thread] Current Thread [Next in Thread>