From: Greg Kroah-Hartman Date: Fri, 1 Mar 2013 00:50:49 +0000 (-0800) Subject: 3.0-stable patches X-Git-Tag: v3.8.2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f9b28e12f20b94281d35aa3aeb35cd56db70387;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0-stable patches added patches: media-rc-unlock-on-error-in-show_protocols.patch --- diff --git a/queue-3.0/media-rc-unlock-on-error-in-show_protocols.patch b/queue-3.0/media-rc-unlock-on-error-in-show_protocols.patch new file mode 100644 index 00000000000..66cc9416e6d --- /dev/null +++ b/queue-3.0/media-rc-unlock-on-error-in-show_protocols.patch @@ -0,0 +1,37 @@ +From 30ebc5e44d057a1619ad63fe32c8c1670c37c4b8 Mon Sep 17 00:00:00 2001 +From: Dan Carpenter +Date: Tue, 27 Nov 2012 13:35:09 -0300 +Subject: media: rc: unlock on error in show_protocols() + +From: Dan Carpenter + +commit 30ebc5e44d057a1619ad63fe32c8c1670c37c4b8 upstream. + +We recently introduced a new return -ENODEV in this function but we need +to unlock before returning. + +[mchehab@redhat.com: found two patches with the same fix. Merged SOB's/acks into one patch] +Acked-by: Herton R. Krzesinski +Signed-off-by: Dan Carpenter +Signed-off-by: Douglas Bagnall +Signed-off-by: Mauro Carvalho Chehab +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/media/rc/rc-main.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/drivers/media/rc/rc-main.c ++++ b/drivers/media/rc/rc-main.c +@@ -775,8 +775,10 @@ static ssize_t show_protocols(struct dev + } else if (dev->raw) { + enabled = dev->raw->enabled_protocols; + allowed = ir_raw_get_allowed_protocols(); +- } else ++ } else { ++ mutex_unlock(&dev->lock); + return -ENODEV; ++ } + + IR_dprintk(1, "allowed - 0x%llx, enabled - 0x%llx\n", + (long long)allowed, diff --git a/queue-3.0/series b/queue-3.0/series index b1adf0ec8e5..8a28cdf0404 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -11,3 +11,4 @@ xen-blkback-do-not-leak-mode-property.patch idr-fix-a-subtle-bug-in-idr_get_next.patch firewire-add-minor-number-range-check-to-fw_device_init.patch sysctl-fix-null-checking-in-bin_dn_node_address.patch +media-rc-unlock-on-error-in-show_protocols.patch