projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9dccdd
)
TTY: fix fail path in tty_open
author
Jiri Slaby
<jslaby@suse.cz>
Wed, 23 Mar 2011 09:48:37 +0000
(10:48 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 19 Apr 2011 21:43:01 +0000
(14:43 -0700)
When tty_add_file fails we omit to clean up. Fix that by calling
tty_release appropriatelly.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_io.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index 8540f2bab9c60f6438e19302703cfc98b5130d6f..55bb456e8f1c6a1aebae19e8232baddcd0c96f64 100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-1894,6
+1894,7
@@
got_driver:
retval = tty_add_file(tty, filp);
if (retval) {
tty_unlock();
+ tty_release(inode, filp);
return retval;
}
This page took
0.02619 seconds
and
5
git commands to generate.