Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98545
b: refs/heads/master
c: 3e3cda9
h: refs/heads/master
i:
  98543: b49f52a
v: v3
  • Loading branch information
Ben Hutchings authored and Jeff Garzik committed Jun 27, 2008
1 parent 605354b commit 0332373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c81ec80bc86f4eacd5f48229c1de623865acbb92
refs/heads/master: 3e3cda96d014b69f7723d1d4507897e5be6aceb7
3 changes: 3 additions & 0 deletions trunk/drivers/net/wan/x25_asy.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/x25.h>
#include <linux/lapb.h>
#include <linux/init.h>
#include <linux/rtnetlink.h>
#include "x25_asy.h"

#include <net/x25device.h>
Expand Down Expand Up @@ -601,8 +602,10 @@ static void x25_asy_close_tty(struct tty_struct *tty)
if (!sl || sl->magic != X25_ASY_MAGIC)
return;

rtnl_lock();
if (sl->dev->flags & IFF_UP)
dev_close(sl->dev);
rtnl_unlock();

tty->disc_data = NULL;
sl->tty = NULL;
Expand Down

0 comments on commit 0332373

Please sign in to comment.