From 9d5041a3283305949ee40e49f0d24f39cd9bd4c7 Mon Sep 17 00:00:00 2001 From: Jubeom Kim Date: Wed, 22 Jun 2011 22:03:05 +0900 Subject: 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 Tested-by: Varun Colbert --- drivers/media/video/tegra/avp/avp_svc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/media/video') 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); } -- cgit v1.2.3