[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459619226-9786-1-git-send-email-iban.rodriguez@ono.com>
Date: Sat, 2 Apr 2016 19:47:06 +0200
From: Iban Rodriguez <iban.rodriguez@....com>
To: David Kershner <david.kershner@...sys.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Benjamin Romer <benjamin.romer@...sys.com>,
Tim Sell <Timothy.Sell@...sys.com>,
Neil Horman <nhorman@...hat.com>
Cc: sparmaintainer@...sys.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
Iban Rodriguez <iban.rodriguez@....com>
Subject: Staging: unisys/verisonic: Correct double unlock
'priv_lock' is unlocked twice. The first one is removed and
the function 'visornic_serverdown_complete' is now called with
'priv_lock' locked because 'devdata' is modified inside.
Signed-off-by: Iban Rodriguez <iban.rodriguez@....com>
---
drivers/staging/unisys/visornic/visornic_main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c
index be0d057346c3..af03f2938fe9 100644
--- a/drivers/staging/unisys/visornic/visornic_main.c
+++ b/drivers/staging/unisys/visornic/visornic_main.c
@@ -368,7 +368,6 @@ visornic_serverdown(struct visornic_devdata *devdata,
}
devdata->server_change_state = true;
devdata->server_down_complete_func = complete_func;
- spin_unlock_irqrestore(&devdata->priv_lock, flags);
visornic_serverdown_complete(devdata);
} else if (devdata->server_change_state) {
dev_dbg(&devdata->dev->device, "%s changing state\n",
--
1.9.1
Powered by blists - more mailing lists