mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Staging: unisys/verisonic: Correct double unlock
@ 2016-04-02 17:47 Iban Rodriguez
  2016-04-02 23:20 ` Sell, Timothy C
  0 siblings, 1 reply; 7+ messages in thread
From: Iban Rodriguez @ 2016-04-02 17:47 UTC (permalink / raw)
  To: David Kershner, Greg Kroah-Hartman, Benjamin Romer, Tim Sell,
	Neil Horman
  Cc: sparmaintainer, devel, linux-kernel, Iban Rodriguez

'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@ono.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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-05 16:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-02 17:47 Staging: unisys/verisonic: Correct double unlock Iban Rodriguez
2016-04-02 23:20 ` Sell, Timothy C
2016-04-04 14:35   ` Neil Horman
2016-04-04 21:40     ` Sell, Timothy C
2016-04-05 14:57       ` Neil Horman
2016-04-05 15:49         ` Sell, Timothy C
2016-04-05 16:04           ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®