summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/hbm.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-05-07 16:51:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 14:15:25 -0700
commit84b3294a40c87e5c8bdaf05d9d3c3aff7e320453 (patch)
tree176459ec36a5cee9959b8303214860d187218db5 /drivers/misc/mei/hbm.h
parentddb09754e6c7239e302c7b675df9bbd415f8de5d (diff)
mei: fix memory leak of mei_clients array
we never freed the mei_clients array on driver shutdown only on reset add mei_hbm_reset function that wraps the hbm cleanup Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hbm.h')
-rw-r--r--drivers/misc/mei/hbm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/hbm.h b/drivers/misc/mei/hbm.h
index 8e39cee408d0..683eb2835cec 100644
--- a/drivers/misc/mei/hbm.h
+++ b/drivers/misc/mei/hbm.h
@@ -50,6 +50,7 @@ static inline void mei_hbm_hdr(struct mei_msg_hdr *hdr, size_t length)
}
void mei_hbm_idle(struct mei_device *dev);
+void mei_hbm_reset(struct mei_device *dev);
int mei_hbm_start_req(struct mei_device *dev);
int mei_hbm_start_wait(struct mei_device *dev);
int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl);