Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150989
b: refs/heads/master
c: 46a5066
h: refs/heads/master
i:
  150987: 4483054
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 16, 2009
1 parent 868ce2c commit fa542b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: cbcb6d66af4c6169ce1c2d01a3ab345f04b8359d
refs/heads/master: 46a50661fc95d4acf5e4c203f7889234238ce642
6 changes: 4 additions & 2 deletions trunk/drivers/char/tty_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ static struct tty_ldisc *tty_ldisc_try_get(int disc)
}
}
spin_unlock_irqrestore(&tty_ldisc_lock, flags);
if (err)
if (err) {
kfree(ld);
return ERR_PTR(err);
}
return ld;
}

Expand Down Expand Up @@ -262,7 +264,7 @@ const struct file_operations tty_ldiscs_proc_fops = {
* @ld: line discipline
*
* Install an instance of a line discipline into a tty structure. The
* ldisc must have a reference count above zero to ensure it remains/
* ldisc must have a reference count above zero to ensure it remains.
* The tty instance refcount starts at zero.
*
* Locking:
Expand Down

0 comments on commit fa542b3

Please sign in to comment.