From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: [merged] hso-fix-soft-lockup.patch removed from -mm tree Date: Tue, 24 Nov 2009 11:19:07 -0800 Message-ID: <200911241919.nAOJJ7Am020996@imap1.linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:54441 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758168AbZKXTTw (ORCPT ); Tue, 24 Nov 2009 14:19:52 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: antti.kaijanmaki@nomovok.com, davem@davemloft.net, greg@kroah.com, randy.dunlap@oracle.com, stable@kernel.org, mm-commits@vger.kernel.org The patch titled hso: fix soft-lockup has been removed from the -mm tree. Its filename was hso-fix-soft-lockup.patch This patch was dropped because it was merged into mainline or a subsyst= em tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mm= otm/ ------------------------------------------------------ Subject: hso: fix soft-lockup =46rom: Antti Kaijanm=E4ki =46ix soft-lockup in hso.c which is triggered on SMP machine when modem is removed while file descriptor(s) under /dev are still open: old version called kref_put() too early which resulted in destroying hso_serial and hso_device objects which were still used later on. Signed-off-by: Antti Kaijanm=E4ki Cc: Greg KH Cc: "David S. Miller" Cc: Randy Dunlap Cc: Signed-off-by: Andrew Morton --- drivers/net/usb/hso.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/net/usb/hso.c~hso-fix-soft-lockup drivers/net/usb/hso= =2Ec --- a/drivers/net/usb/hso.c~hso-fix-soft-lockup +++ a/drivers/net/usb/hso.c @@ -1363,7 +1363,7 @@ static void hso_serial_close(struct tty_ /* reset the rts and dtr */ /* do the actual close */ serial->open_count--; - kref_put(&serial->parent->ref, hso_serial_ref_free); + if (serial->open_count <=3D 0) { serial->open_count =3D 0; spin_lock_irq(&serial->serial_lock); @@ -1383,6 +1383,8 @@ static void hso_serial_close(struct tty_ usb_autopm_put_interface(serial->parent->interface); =20 mutex_unlock(&serial->parent->mutex); + + kref_put(&serial->parent->ref, hso_serial_ref_free); } =20 /* close the requested serial port */ _ Patches currently in -mm which might be from antti.kaijanmaki@nomovok.c= om are linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html