patch-2.2.19 linux/drivers/net/irda/irtty.c
Next file: linux/drivers/net/lance.c
Previous file: linux/drivers/net/hamradio/scc.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Mar 25 11:37:34 2001
- Orig file:
v2.2.18/drivers/net/irda/irtty.c
- Orig date:
Sun Mar 25 11:12:53 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/net/irda/irtty.c linux/drivers/net/irda/irtty.c
@@ -282,6 +282,11 @@
tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
tty->disc_data = 0;
+ /* We are not using any dongle anymore! */
+ if (self->dongle)
+ irda_device_dongle_cleanup(self->dongle);
+ self->dongle = NULL;
+
/* Remove netdevice */
if (self->netdev) {
rtnl_lock();
@@ -291,11 +296,6 @@
kfree(self->netdev);
}
- /* We are not using any dongle anymore! */
- if (self->dongle)
- irda_device_dongle_cleanup(self->dongle);
- self->dongle = NULL;
-
/* Remove speed changing task if any */
if (self->task)
irda_task_delete(self->task);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)