diff options
author | H Hartley Sweeten | 2012-06-05 20:12:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-06-12 01:54:29 +0200 |
commit | 513e48f90a9d092ffcf8301b6ed10a8d8a5ebe77 (patch) | |
tree | dfbd43b0061da340f45385c0766197a68b18901a /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: cleanup sysfs functions (diff) | |
download | kernel-qcow2-linux-513e48f90a9d092ffcf8301b6ed10a8d8a5ebe77.tar.gz kernel-qcow2-linux-513e48f90a9d092ffcf8301b6ed10a8d8a5ebe77.tar.xz kernel-qcow2-linux-513e48f90a9d092ffcf8301b6ed10a8d8a5ebe77.zip |
staging: comedi: ni_labpc: unlock spinlock on command error
When starting the acquisition the labpc_ai_cmd function was
exiting without unlocking the spinlock. This results in a
sparse warning:
warning: context imbalance in 'labpc_ai_cmd' - different lock contexts for basic block
Add the missing spin_unlock_irqrestore calls.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions