[media] rc: unlock on error in show_protocols()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Nov 2012 16:35:09 +0000 (13:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Dec 2012 14:02:13 +0000 (12:02 -0200)
commit30ebc5e44d057a1619ad63fe32c8c1670c37c4b8
tree58ab125c0e542243451eb0ed9e64658df7ef5dd0
parent45b82596be0214f161c8176bd3e18f779e36eccd
[media] rc: unlock on error in show_protocols()

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>
Cc: stable@vger.kernel.org
Signed-off-by: Douglas Bagnall <douglas@paradise.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/rc-main.c