projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90387f5
)
tty: riscom8, fix tty refcnt
author
Jiri Slaby
<jirislaby@gmail.com>
Sun, 6 Sep 2009 21:10:09 +0000
(23:10 +0200)
committer
Live-CD User
<linux@linux.site>
Sat, 19 Sep 2009 20:13:37 +0000
(13:13 -0700)
Stanse found a tty refcnt leak on one fail path in rc_transmit.
Fix that by jumping to the 'out' label.
http://stanse.fi.muni.cz/
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/riscom8.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/riscom8.c
b/drivers/char/riscom8.c
index 3c7cf2cf3ea25db93bfe604e0940dfabef11c7d2..3cfa22d469e0cd7f74e01b416f428dc3be508add 100644
(file)
--- a/
drivers/char/riscom8.c
+++ b/
drivers/char/riscom8.c
@@
-467,7
+467,7
@@
static void rc_transmit(struct riscom_board const *bp)
rc_out(bp, CD180_CCR, CCR_CORCHG2);
port->break_length = 0;
}
-
return
;
+
goto out
;
}
count = CD180_NFIFO;