From: H Hartley Sweeten Date: Tue, 5 Jun 2012 18:12:18 +0000 (-0700) Subject: staging: comedi: ni_labpc: unlock spinlock on command error X-Git-Tag: v3.6-rc1~100^2~871 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=513e48f90a9d092ffcf8301b6ed10a8d8a5ebe77;p=pandora-kernel.git 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 Cc: Ian Abbott Cc: Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed