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

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

mei: free me client references on host init



Fx fixes leak introduced by:
commit b7d88514 ("mei: revamp me clients list handling")

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed99d846
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -668,14 +668,17 @@ void mei_host_client_init(struct work_struct *work)
	me_cl = mei_me_cl_by_uuid(dev, &mei_amthif_guid);
	if (me_cl)
		mei_amthif_host_init(dev);
	mei_me_cl_put(me_cl);

	me_cl = mei_me_cl_by_uuid(dev, &mei_wd_guid);
	if (me_cl)
		mei_wd_host_init(dev);
	mei_me_cl_put(me_cl);

	me_cl = mei_me_cl_by_uuid(dev, &mei_nfc_guid);
	if (me_cl)
		mei_nfc_host_init(dev);
	mei_me_cl_put(me_cl);


	dev->dev_state = MEI_DEV_ENABLED;