aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/nfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mei/nfc.c')
-rw-r--r--drivers/misc/mei/nfc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mei/nfc.c b/drivers/misc/mei/nfc.c
index b983c4ecad38..290ef3037437 100644
--- a/drivers/misc/mei/nfc.c
+++ b/drivers/misc/mei/nfc.c
@@ -402,11 +402,12 @@ void mei_nfc_host_exit(struct mei_device *dev)
402 402
403 cldev->priv_data = NULL; 403 cldev->priv_data = NULL;
404 404
405 mutex_lock(&dev->device_lock);
406 /* Need to remove the device here 405 /* Need to remove the device here
407 * since mei_nfc_free will unlink the clients 406 * since mei_nfc_free will unlink the clients
408 */ 407 */
409 mei_cl_remove_device(cldev); 408 mei_cl_remove_device(cldev);
409
410 mutex_lock(&dev->device_lock);
410 mei_nfc_free(ndev); 411 mei_nfc_free(ndev);
411 mutex_unlock(&dev->device_lock); 412 mutex_unlock(&dev->device_lock);
412} 413}