diff options
author | Ahung Cheng <ahcheng@nvidia.com> | 2013-11-07 15:44:57 +0800 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2014-01-16 17:02:04 -0800 |
commit | 06f61673d3b42850f9a077e6c7bdf17c72d7f66f (patch) | |
tree | 2eac27244f776198e008fa611feef86296c62263 /drivers | |
parent | bc29177362578ec49581ad948912391868dacdc6 (diff) |
video: tegra: host: Fix memory leakage in msenc
Add kfree for msenc in deinit
bug 1402255
(Cherry-picked from commit bd1fc938268f40581c2ff7f6f698bdd7c8c8bc2a)
Reviewed-on: http://git-master/r/327535
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Change-Id: I8b921d2b221126097ebf48e14c679b0e08245bed
Signed-off-by: Ahung Cheng <ahcheng@nvidia.com>
Reviewed-on: http://git-master/r/353527
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/host/msenc/msenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/msenc/msenc.c b/drivers/video/tegra/host/msenc/msenc.c index 117996261d0e..a2eb2c7d9b53 100644 --- a/drivers/video/tegra/host/msenc/msenc.c +++ b/drivers/video/tegra/host/msenc/msenc.c @@ -3,7 +3,7 @@ * * Tegra MSENC Module Support * - * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -380,6 +380,7 @@ void nvhost_msenc_deinit(struct platform_device *dev) m->mem_r = NULL; } m->valid = false; + kfree(m); } void nvhost_msenc_finalize_poweron(struct platform_device *dev) |