]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[media] lirc_dev: stray unlock in lirc_dev_fop_poll()
authorDan Carpenter <error27@gmail.com>
Wed, 17 Nov 2010 05:12:23 +0000 (02:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 20 Dec 2010 16:11:14 +0000 (14:11 -0200)
We shouldn't unlock here.  I think this was a cut and paste error.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/lirc_dev.c

index 8418b14ee4d2244ee3b6528549d0d22f35c85159..8ab9d87f3a468af40d8d760db172f5a66ca2c02e 100644 (file)
@@ -522,10 +522,8 @@ unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait)
 
        dev_dbg(ir->d.dev, LOGHEAD "poll called\n", ir->d.name, ir->d.minor);
 
-       if (!ir->attached) {
-               mutex_unlock(&ir->irctl_lock);
+       if (!ir->attached)
                return POLLERR;
-       }
 
        poll_wait(file, &ir->buf->wait_poll, wait);