Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193994
b: refs/heads/master
c: e31d5a0
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and David S. Miller committed Apr 7, 2010
1 parent 5551276 commit f5d1bd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c93f09402106f22601838ee2bb0d02bae934b5e5
refs/heads/master: e31d5a05948e4478ba8396063d1e1f39880928e2
3 changes: 2 additions & 1 deletion trunk/drivers/net/caif/caif_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static int ldisc_open(struct tty_struct *tty)
sprintf(name, "cf%s", tty->name);
dev = alloc_netdev(sizeof(*ser), name, caifdev_setup);
ser = netdev_priv(dev);
ser->tty = tty;
ser->tty = tty_kref_get(tty);
ser->dev = dev;
debugfs_init(ser, tty);
tty->receive_room = N_TTY_BUF_SIZE;
Expand Down Expand Up @@ -352,6 +352,7 @@ static void ldisc_close(struct tty_struct *tty)
unregister_netdevice(ser->dev);
list_del(&ser->node);
debugfs_deinit(ser);
tty_kref_put(ser->tty);
if (!islocked)
rtnl_unlock();
}
Expand Down

0 comments on commit f5d1bd3

Please sign in to comment.