From 2177f80076ebc15cc58fb521b58e49c83315f34e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 23 May 2012 11:20:07 +0200 Subject: linux-ti33x-psp 3.2: update to 3.2.18 Duplicate patches between PSP and 3.2.17 have been dropped from the 3.2.17 series Signed-off-by: Koen Kooi Signed-off-by: Denys Dmytriyenko --- ...rs-tty-amiserial.c-add-missing-tty_unlock.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0027-drivers-tty-amiserial.c-add-missing-tty_unlock.patch (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0027-drivers-tty-amiserial.c-add-missing-tty_unlock.patch') diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0027-drivers-tty-amiserial.c-add-missing-tty_unlock.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0027-drivers-tty-amiserial.c-add-missing-tty_unlock.patch new file mode 100644 index 00000000..4b935aa8 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0027-drivers-tty-amiserial.c-add-missing-tty_unlock.patch @@ -0,0 +1,36 @@ +From fefc2c6916651c05eed1882c3a59a6468d91e417 Mon Sep 17 00:00:00 2001 +From: Julia Lawall +Date: Thu, 19 Apr 2012 18:12:40 +0200 +Subject: [PATCH 027/165] drivers/tty/amiserial.c: add missing tty_unlock + +commit d3a7b83f865b46bb7b5e1ed18a129ce1af349db4 upstream. + +tty_unlock is used on all other exits from the function. + +Signed-off-by: Julia Lawall +Acked-by: Jiri Slaby +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Ben Hutchings +--- + drivers/tty/amiserial.c | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c +index b84c834..8daf073 100644 +--- a/drivers/tty/amiserial.c ++++ b/drivers/tty/amiserial.c +@@ -1113,8 +1113,10 @@ static int set_serial_info(struct async_struct * info, + (new_serial.close_delay != state->close_delay) || + (new_serial.xmit_fifo_size != state->xmit_fifo_size) || + ((new_serial.flags & ~ASYNC_USR_MASK) != +- (state->flags & ~ASYNC_USR_MASK))) ++ (state->flags & ~ASYNC_USR_MASK))) { ++ tty_unlock(); + return -EPERM; ++ } + state->flags = ((state->flags & ~ASYNC_USR_MASK) | + (new_serial.flags & ASYNC_USR_MASK)); + info->flags = ((info->flags & ~ASYNC_USR_MASK) | +-- +1.7.7.6 + -- cgit v1.2.3-54-g00ecf