20 Apr, 2011
4 commits
-
remove invalid location line in each file header after location
moved from driver/char to driver/ttySigned-off-by: Jovi Zhang
Signed-off-by: Greg Kroah-Hartman -
Used the newly introduced deinitialize_tty_struct to properly shut
down ldisc.It is intended to fix the Julian's reported problem. He reports that
kmemleak checker warns about memory leak:
unreferenced object 0xc0e19860 (size 8):
comm cat, pid 1226, jiffies 4294919464 (age 287.476s)
hex dump (first 8 bytes):
44 de 2d c1 01 00 00 00 D.-.....
backtrace:
[] create_object+0x109/0x1ad
[] kmem_cache_alloc+0x60/0x68
[] tty_ldisc_get+0x54/0x76
[] tty_ldisc_init+0xa/0x20
[] initialize_tty_struct+0x2d/0x1ac
[] tty_init_dev+0x59/0x10d
[] tty_open+0x24a/0x3a2
...Signed-off-by: Jiri Slaby
Cc: Alan Cox
Reported-by: Julian Anastasov
Signed-off-by: Greg Kroah-Hartman -
Change it so that we call the deinit functions at one place at the end
of the function (by gotos). And while at it use some sane label names.This is a preparation for the deinitialization of tty in the next
patch.Signed-off-by: Jiri Slaby
Cc: Alan Cox
Cc: Julian Anastasov
Signed-off-by: Greg Kroah-Hartman -
Change it so that we call the deinit functions at one place at the end
of the function (by gotos). And while at it use some sane label names.This is a preparation for the deinitialization of tty in the next
patch.Signed-off-by: Jiri Slaby
Cc: Alan Cox
Cc: Julian Anastasov
Signed-off-by: Greg Kroah-Hartman
17 Mar, 2011
1 commit
-
* 'config' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
BKL: That's all, folks
fs/locks.c: Remove stale FIXME left over from BKL conversion
ipx: remove the BKL
appletalk: remove the BKL
x25: remove the BKL
ufs: remove the BKL
hpfs: remove the BKL
drivers: remove extraneous includes of smp_lock.h
tracing: don't trace the BKL
adfs: remove the big kernel lock
02 Mar, 2011
1 commit
-
These were missed the last time I cleaned this up
globally, because of code moving around or new code
getting merged.Signed-off-by: Arnd Bergmann
18 Feb, 2011
1 commit
-
Only oddities here are a couple of drivers that bogusly called the ldisc
helpers instead of returning -ENOIOCTLCMD. Fix the bug and the rest goes
away.Signed-off-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman
05 Nov, 2010
1 commit
-
The tty code should be in its own subdirectory and not in the char
driver with all of the cruft that is currently there.Based on work done by Arnd Bergmann
Acked-by: Arnd Bergmann
Cc: Jiri Slaby
Cc: Alan Cox
Signed-off-by: Greg Kroah-Hartman