diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-05-07 16:51:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 14:15:25 -0700 |
commit | 84b3294a40c87e5c8bdaf05d9d3c3aff7e320453 (patch) | |
tree | 176459ec36a5cee9959b8303214860d187218db5 /drivers/misc/mei/init.c | |
parent | ddb09754e6c7239e302c7b675df9bbd415f8de5d (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/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index b3f70eb17934..510f378b1f06 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -122,8 +122,8 @@ int mei_reset(struct mei_device *dev) mei_amthif_reset_params(dev); } + mei_hbm_reset(dev); - dev->me_clients_num = 0; dev->rd_msg_hdr = 0; dev->wd_pending = false; |