Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}