diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0072-media-staging-lirc_serial-Fix-deadlock-on-resume-fai.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0072-media-staging-lirc_serial-Fix-deadlock-on-resume-fai.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0072-media-staging-lirc_serial-Fix-deadlock-on-resume-fai.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0072-media-staging-lirc_serial-Fix-deadlock-on-resume-fai.patch new file mode 100644 index 00000000..a2fc8cf3 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0072-media-staging-lirc_serial-Fix-deadlock-on-resume-fai.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 7d10af4b409b98292b59a8081e2083e12c23e5c9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ben Hutchings <ben@decadent.org.uk> | ||
3 | Date: Wed, 16 Nov 2011 01:53:25 -0300 | ||
4 | Subject: [PATCH 72/95] media: staging: lirc_serial: Fix deadlock on resume | ||
5 | failure | ||
6 | |||
7 | commit 1ff1d88e862948ae5bfe490248c023ff8ac2855d upstream. | ||
8 | |||
9 | A resume function cannot remove the device it is resuming! | ||
10 | |||
11 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
12 | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> | ||
13 | Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> | ||
14 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
15 | --- | ||
16 | drivers/staging/media/lirc/lirc_serial.c | 4 +--- | ||
17 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
18 | |||
19 | diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c | ||
20 | index d833772..befe626 100644 | ||
21 | --- a/drivers/staging/media/lirc/lirc_serial.c | ||
22 | +++ b/drivers/staging/media/lirc/lirc_serial.c | ||
23 | @@ -1127,10 +1127,8 @@ static int lirc_serial_resume(struct platform_device *dev) | ||
24 | { | ||
25 | unsigned long flags; | ||
26 | |||
27 | - if (hardware_init_port() < 0) { | ||
28 | - lirc_serial_exit(); | ||
29 | + if (hardware_init_port() < 0) | ||
30 | return -EINVAL; | ||
31 | - } | ||
32 | |||
33 | spin_lock_irqsave(&hardware[type].lock, flags); | ||
34 | /* Enable Interrupt */ | ||
35 | -- | ||
36 | 1.7.9.4 | ||
37 | |||