Merge 4.5-rc4 into tty-next
We want the fixes in here, and this resolves a merge error in tty_io.c Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -21,10 +21,15 @@ EXPORT_SYMBOL(tty_lock);
|
||||
|
||||
int tty_lock_interruptible(struct tty_struct *tty)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty))
|
||||
return -EIO;
|
||||
tty_kref_get(tty);
|
||||
return mutex_lock_interruptible(&tty->legacy_mutex);
|
||||
ret = mutex_lock_interruptible(&tty->legacy_mutex);
|
||||
if (ret)
|
||||
tty_kref_put(tty);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void tty_unlock(struct tty_struct *tty)
|
||||
|
Reference in New Issue
Block a user