+ tty-signal-tty-locking-3270-fix.patch added to -mm tree

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

 



The patch titled

     tty-signal-tty-locking 3270 fix

has been added to the -mm tree.  Its filename is

     tty-signal-tty-locking-3270-fix.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: tty-signal-tty-locking 3270 fix
From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

In case of a non 3270 tty the mutex won't get freed.

Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/s390/char/fs3270.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/s390/char/fs3270.c~tty-signal-tty-locking-3270-fix drivers/s390/char/fs3270.c
--- a/drivers/s390/char/fs3270.c~tty-signal-tty-locking-3270-fix
+++ a/drivers/s390/char/fs3270.c
@@ -427,10 +427,10 @@ fs3270_open(struct inode *inode, struct 
 		struct tty_struct *tty;
 		mutex_lock(&tty_mutex);
 		tty = get_current_tty();
-		if (!tty)
-			return -ENODEV;
-		if (tty->driver->major != IBM_TTY3270_MAJOR)
+		if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
+			mutex_unlock(&tty_mutex);
 			return -ENODEV;
+		}
 		minor = tty->index + RAW3270_FIRSTMINOR;
 		mutex_unlock(&tty_mutex);
 	}
_

Patches currently in -mm which might be from schwidefsky@xxxxxxxxxx are

origin.patch
tty-signal-tty-locking.patch
tty-signal-tty-locking-3270-fix.patch
ibmveth-fix-index-increment-calculation.patch
generic-ioremap_page_range-s390-conversion.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