- usb-serial-console-setup-initialise-tty-kref.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     usb serial console setup: initialise tty kref
has been removed from the -mm tree.  Its filename was
     usb-serial-console-setup-initialise-tty-kref.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: usb serial console setup: initialise tty kref
From: Kevin Hao <kexin.hao@xxxxxxxxxxxxx>

We alloc a fake tty in usb serial console setup function.  we should init
the tty's kref otherwise we will face WARN_ON after following invoke of
tty_port_tty_set --> tty_kref_get.

Signed-off-by: Kevin Hao <kexin.hao@xxxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/usb/serial/console.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/usb/serial/console.c~usb-serial-console-setup-initialise-tty-kref drivers/usb/serial/console.c
--- a/drivers/usb/serial/console.c~usb-serial-console-setup-initialise-tty-kref
+++ a/drivers/usb/serial/console.c
@@ -135,6 +135,7 @@ static int usb_console_setup(struct cons
 				err("no more memory");
 				goto reset_open_count;
 			}
+			kref_init(&tty->kref);
 			termios = kzalloc(sizeof(*termios), GFP_KERNEL);
 			if (!termios) {
 				retval = -ENOMEM;
_

Patches currently in -mm which might be from kexin.hao@xxxxxxxxxxxxx are

linux-next.patch
usb-serial-console-add-device-function-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux