- hso-fix-refcounting-on-the-ttyhsx-devices.patch removed from -mm tree

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

 



The patch titled
     hso: fix refcounting on the ttyHSx devices
has been removed from the -mm tree.  Its filename was
     hso-fix-refcounting-on-the-ttyhsx-devices.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: hso: fix refcounting on the ttyHSx devices
From: Olivier Blin <blino@xxxxxxxxxxxx>

The references on ttyHSx devices were not decremented correctly when the
tty was closed.  The helper freeing the serial devices was never called
because of that, and the module left some dangling sysfs devices after
being unloaded.

Signed-off-by: Olivier Blin <blino@xxxxxxxxxxxx>
Cc: Jari Tenhunen <jari.tenhunen@xxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/net/usb/hso.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/usb/hso.c~hso-fix-refcounting-on-the-ttyhsx-devices drivers/net/usb/hso.c
--- a/drivers/net/usb/hso.c~hso-fix-refcounting-on-the-ttyhsx-devices
+++ a/drivers/net/usb/hso.c
@@ -1103,8 +1103,8 @@ 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 <= 0) {
-		kref_put(&serial->parent->ref, hso_serial_ref_free);
 		serial->open_count = 0;
 		if (serial->tty) {
 			serial->tty->driver_data = NULL;
_

Patches currently in -mm which might be from blino@xxxxxxxxxxxx are

linux-next.patch
git-unionfs.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