summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655
diff options
context:
space:
mode:
authorCédric Cabessa <ced@ryick.net>2014-03-26 17:49:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-18 16:07:42 -0700
commitf2ca407b9677eb24e824dc78586d102d8c57f37d (patch)
tree9769e6bb9ca665b972591ec5ab0e8dfacb7f7e26 /drivers/staging/vt6655
parenteb0eb66846bbd19b2154e7902386061f0bcd17f5 (diff)
downloadblackbird-op-linux-f2ca407b9677eb24e824dc78586d102d8c57f37d.tar.gz
blackbird-op-linux-f2ca407b9677eb24e824dc78586d102d8c57f37d.zip
staging: vt6655,vt6656: fix sparse error "unexpected unlock"
Signed-off-by: Cédric Cabessa <ced@ryick.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r--drivers/staging/vt6655/wpactl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/wpactl.c b/drivers/staging/vt6655/wpactl.c
index d17224f39b4d..9f0715cc6367 100644
--- a/drivers/staging/vt6655/wpactl.c
+++ b/drivers/staging/vt6655/wpactl.c
@@ -188,7 +188,8 @@ int wpa_set_wpadev(PSDevice pDevice, int val)
*
*/
-int wpa_set_keys(PSDevice pDevice, void *ctx, bool fcpfkernel)
+int wpa_set_keys(PSDevice pDevice, void *ctx,
+ bool fcpfkernel) __must_hold(&pDevice->lock)
{
struct viawget_wpa_param *param = ctx;
PSMgmtObject pMgmt = pDevice->pMgmt;
OpenPOWER on IntegriCloud