projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66ae460
)
mei: nfc: mei_nfc_free has to be called under lock
author
Tomas Winkler
<tomas.winkler@intel.com>
Wed, 8 Jan 2014 18:57:44 +0000
(20:57 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:27:42 +0000
(15:27 -0800)
nfc_nfc_free unlink clients from the device list
and has to be called under mei mutex
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/nfc.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/nfc.c
b/drivers/misc/mei/nfc.c
index
0a89220
..
5496190
100644
(file)
--- a/
drivers/misc/mei/nfc.c
+++ b/
drivers/misc/mei/nfc.c
@@
-469,7
+469,9
@@
static void mei_nfc_init(struct work_struct *work)
return;
err:
+ mutex_lock(&dev->device_lock);
mei_nfc_free(ndev);
+ mutex_unlock(&dev->device_lock);
return;
}