diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-05-07 13:51:28 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 21:15:25 (GMT) |
commit | 84b3294a40c87e5c8bdaf05d9d3c3aff7e320453 (patch) | |
tree | 176459ec36a5cee9959b8303214860d187218db5 /drivers/misc/mei/hbm.h | |
parent | ddb09754e6c7239e302c7b675df9bbd415f8de5d (diff) | |
download | linux-84b3294a40c87e5c8bdaf05d9d3c3aff7e320453.tar.xz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/hbm.h b/drivers/misc/mei/hbm.h index 8e39cee..683eb28 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); |