diff options
author | Jubeom Kim <jubeomk@nvidia.com> | 2011-06-22 22:03:05 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-07-01 10:46:39 -0700 |
commit | 9d5041a3283305949ee40e49f0d24f39cd9bd4c7 (patch) | |
tree | ac44d7652073cb7858a9911e84273a2294573e0f /drivers | |
parent | 8ded695db7d84feba17c0276126b156502124068 (diff) |
media: video: tegra: avp: add kfree to error routine.
Needs kfree function when error occurs.
Reviewed-on: http://git-master/r/37859
(cherry picked from commit 26c98cb216294230f5cc46055c48a0224989df80)
Change-Id: Ic83407628eb6e4c2aad0ba014f5a97b561b3ecf6
Reviewed-on: http://git-master/r/38449
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/tegra/avp/avp_svc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tegra/avp/avp_svc.c b/drivers/media/video/tegra/avp/avp_svc.c index a8bfdcf1fd53..0c2253069e0e 100644 --- a/drivers/media/video/tegra/avp/avp_svc.c +++ b/drivers/media/video/tegra/avp/avp_svc.c @@ -771,6 +771,7 @@ err_get_clks: clk_put(avp_svc->sclk); if (!IS_ERR_OR_NULL(avp_svc->emcclk)) clk_put(avp_svc->emcclk); + kfree(avp_svc); err_alloc: return ERR_PTR(ret); } |