staging: comedi vmk80xx: lock held on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Apr 2012 11:46:27 +0000 (14:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2012 15:32:45 +0000 (08:32 -0700)
If the user passes an invalid command, then we don't drop the lock
before returning.  The check for invalid commands doesn't need to be
done under lock so I moved it forward a couple lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found