LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [char-misc-next 1/2] mei: free me client references on host init
@ 2015-03-04 16:41 Tomas Winkler
  2015-03-04 16:41 ` [char-misc-next 2/2] mei: trace: fix missing include to linux/device.h Tomas Winkler
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Winkler @ 2015-03-04 16:41 UTC (permalink / raw)
  To: gregkh; +Cc: arnd, linux-kernel, Tomas Winkler

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

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 drivers/misc/mei/client.c | 3 +++
 1 file changed, 3 insertions(+)

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;
-- 
1.9.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [char-misc-next 2/2] mei: trace: fix missing include to linux/device.h
  2015-03-04 16:41 [char-misc-next 1/2] mei: free me client references on host init Tomas Winkler
@ 2015-03-04 16:41 ` Tomas Winkler
  0 siblings, 0 replies; 2+ messages in thread
From: Tomas Winkler @ 2015-03-04 16:41 UTC (permalink / raw)
  To: gregkh; +Cc: arnd, linux-kernel, Tomas Winkler

Fix warning (discovered using randconfig)

 drivers/misc/mei/mei-trace.h:30:24: warning: 'struct device' declared
inside parameter list
     TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32
val),

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 drivers/misc/mei/mei-trace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/misc/mei/mei-trace.h b/drivers/misc/mei/mei-trace.h
index d5c38d15cdd9..5f4e1a17360b 100644
--- a/drivers/misc/mei/mei-trace.h
+++ b/drivers/misc/mei/mei-trace.h
@@ -21,6 +21,8 @@
 #include <linux/types.h>
 #include <linux/tracepoint.h>
 
+#include <linux/device.h>
+
 #undef TRACE_SYSTEM
 
 #define TRACE_SYSTEM mei
-- 
1.9.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-04 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 16:41 [char-misc-next 1/2] mei: free me client references on host init Tomas Winkler
2015-03-04 16:41 ` [char-misc-next 2/2] mei: trace: fix missing include to linux/device.h Tomas Winkler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).