]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Fix USB kref leak
authorAlan Cox <alan@linux.intel.com>
Thu, 9 Jul 2009 12:36:22 +0000 (13:36 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 11 Jul 2009 02:17:22 +0000 (19:17 -0700)
commit63d74679f08678cc863f757d5d2ea3e02eeac8c3
tree39a2231da07c6a47a4b66baf0158591a9739ac8f
parentae01fc47feb1f437e94e5f6f1248efa94c944f4f
tty: Fix USB kref leak

The sysrq code acquired a kref leak. Fix it by passing the tty separately
from the caller (thus effectively using the callers kref which all the
callers hold anyway)

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/generic.c
drivers/usb/serial/pl2303.c
include/linux/usb/serial.h