summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/redrat3.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-05-26 05:52:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:52:24 -0300
commit0528f354cfb98d8df32a76302ec07af1aa29dbd4 (patch)
treeb0dd64723598739b64a069cf08cac8e4602ddbd8 /drivers/media/rc/redrat3.c
parentec05a642140c7c34f7ba1cb8a94be9b1154286ae (diff)
downloadblackbird-op-linux-0528f354cfb98d8df32a76302ec07af1aa29dbd4.tar.gz
blackbird-op-linux-0528f354cfb98d8df32a76302ec07af1aa29dbd4.zip
[media] rc: double unlock in rc_register_device()
If change_protocol() fails and we goto out_raw, then it calls unlock twice. I noticed that the other time we called change_protocol() we held the &dev->lock, so I changed it to hold it here too. Reviewed-by: Jarod Wilson <jarod@redhat.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/redrat3.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud