rc: unlock on error in show_protocols()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Nov 2012 16:35:09 +0000 (13:35 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:24:24 +0000 (03:24 +0000)
commit04ea2389e48049a79da78e517ebb411d2fad7bf2
tree71023c8f346dedbbf6c548668f8a0774f1ff6b8f
parent86e9259d57d7eb2fae2acf5539e782403b689efb
rc: unlock on error in show_protocols()

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 <herton.krzesinski@canonical.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Douglas Bagnall <douglas@paradise.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/rc/rc-main.c