]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_labpc: unlock spinlock on command error
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 5 Jun 2012 18:12:18 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 23:54:29 +0000 (16:54 -0700)
commit3052ab3f3f8476b19c98a39a1d83fb6e1e661e4a
treedfbd43b0061da340f45385c0766197a68b18901a
parent82ab4d2c9825e603aeb14acc24b91f96a21021f3
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>
drivers/staging/comedi/drivers/ni_labpc.c