Commit f2ca407b authored by Cédric Cabessa's avatar Cédric Cabessa Committed by Greg Kroah-Hartman

staging: vt6655,vt6656: fix sparse error "unexpected unlock"

Signed-off-by: default avatarCédric Cabessa <ced@ryick.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb0eb668
......@@ -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;
......
......@@ -31,6 +31,7 @@
*
*/
#include <linux/compiler.h>
#include "firmware.h"
#include "control.h"
#include "rndis.h"
......@@ -43,7 +44,7 @@ static int msglevel = MSG_LEVEL_INFO;
#define FIRMWARE_CHUNK_SIZE 0x400
int FIRMWAREbDownload(struct vnt_private *pDevice)
int FIRMWAREbDownload(struct vnt_private *pDevice) __must_hold(&pDevice->lock)
{
struct device *dev = &pDevice->usb->dev;
const struct firmware *fw;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment