summaryrefslogtreecommitdiff
path: root/drivers/misc/mei
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2015-03-04 18:41:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-04 08:54:29 -0800
commitb43baf694fde30dc2db2386c347324d1a013f3d1 (patch)
tree2f56718e9c4e152b09a7ff8afcc9df06e57407ae /drivers/misc/mei
parented99d846f1774e14c8705819c12469eb3855b54e (diff)
mei: free me client references on host init
Fx fixes leak introduced by: commit b7d885145538 ("mei: revamp me clients list handling") Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei')
-rw-r--r--drivers/misc/mei/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 98a5363e1e8a..b6fec4d15307 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -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;