Commit 0631213f authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

mei: nfc: mei_nfc_free has to be called under lock

nfc_nfc_free unlink clients from the device list
and has to be called under mei mutex
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 66ae460b
...@@ -469,7 +469,9 @@ static void mei_nfc_init(struct work_struct *work) ...@@ -469,7 +469,9 @@ static void mei_nfc_init(struct work_struct *work)
return; return;
err: err:
mutex_lock(&dev->device_lock);
mei_nfc_free(ndev); mei_nfc_free(ndev);
mutex_unlock(&dev->device_lock);
return; return;
} }
......
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