staging: comedi: amplc_pci230: add a missing unlock
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Jun 2012 06:52:58 +0000 (09:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 23:58:58 +0000 (16:58 -0700)
This side of the if else statement returned with the lock held and IRQs
disabled.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci230.c

index 30487be11650f483b88edebbaed216c69a08fa93..f2ad35c6527d4ac2ed89c70be66cab0a30c6ff83 100644 (file)
@@ -1387,6 +1387,8 @@ static int pci230_ao_inttrig_scan_begin(struct comedi_device *dev,
                /* Delay.  Should driver be responsible for this? */
                /* XXX TODO: See if DAC busy bit can be used. */
                udelay(8);
+       } else {
+               spin_unlock_irqrestore(&devpriv->ao_stop_spinlock, irqflags);
        }
 
        return 1;