This is a note to let you know that I've just added the patch titled USB: mos7840: fix broken TIOCMIWAIT to the 3.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: usb-mos7840-fix-broken-tiocmiwait.patch and it can be found in the queue-3.8 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From e670c6af12517d08a403487b1122eecf506021cf Mon Sep 17 00:00:00 2001 From: Johan Hovold <jhovold@xxxxxxxxx> Date: Tue, 19 Mar 2013 09:21:19 +0100 Subject: USB: mos7840: fix broken TIOCMIWAIT From: Johan Hovold <jhovold@xxxxxxxxx> commit e670c6af12517d08a403487b1122eecf506021cf upstream. Make sure waiting processes are woken on modem-status changes. Currently processes are only woken on termios changes regardless of whether the modem status has changed. Signed-off-by: Johan Hovold <jhovold@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/mos7840.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -423,6 +423,9 @@ static void mos7840_handle_new_msr(struc icount->rng++; smp_wmb(); } + + mos7840_port->delta_msr_cond = 1; + wake_up_interruptible(&mos7840_port->delta_msr_wait); } } @@ -2021,8 +2024,6 @@ static void mos7840_change_port_settings mos7840_port->read_urb_busy = false; } } - wake_up(&mos7840_port->delta_msr_wait); - mos7840_port->delta_msr_cond = 1; dev_dbg(&port->dev, "%s - mos7840_port->shadowLCR is End %x\n", __func__, mos7840_port->shadowLCR); } Patches currently in stable-queue which might be from jhovold@xxxxxxxxx are queue-3.8/usb-quatech2-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-ark3116-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-cypress_m8-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-pl2303-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-io_edgeport-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-ch341-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-mos7840-fix-broken-tiocmiwait.patch queue-3.8/usb-spcp8x5-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-ti_usb_3410_5052-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-serial-fix-hang-when-opening-port.patch queue-3.8/usb-f81232-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-mct_u232-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-oti6858-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-ftdi_sio-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-serial-add-modem-status-change-wait-queue.patch queue-3.8/usb-io_ti-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-ssu100-fix-use-after-free-in-tiocmiwait.patch queue-3.8/usb-mos7840-fix-use-after-free-in-tiocmiwait.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html