media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization...
authorShailendra Verma <shailendra.v@samsung.com>
Fri, 25 Nov 2016 04:57:34 +0000 (23:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:33:17 +0000 (09:33 +0200)
commit209085ee2786319f3c78e7371ea842ffa474b5fb
tree5591ca7c85e6e6b802fd712371dca06c7a05a4c8
parent36212c3e29ffdb1ac489855aab24b5776b42574f
media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

[ Upstream commit 6995a659101bd4effa41cebb067f9dc18d77520d ]

Fix to avoid possible memory leak if the decoder initialization
got failed.Free the allocated memory for file handle object
before return in case decoder initialization fails.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/davinci_vpfe/vpfe_video.c