media: davinci: vpif: Fix memory leak in probe error path
[ Upstream commit 024bf40e ] If an error occurs during the initialization of `pdev_display`, the allocated platform device `pdev_capture` is not released properly, leading to a memory leak. Adjust error path handling to fix the leak. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 43acb728 ("media: davinci: vpif: fix use-after-free on driver unbind") Cc: stable@vger.kernel.org Signed-off-by:Dmitry Nikiforov <Dm1tryNk@yandex.ru> Reviewed-by:
Johan Hovold <johan@kernel.org> Signed-off-by:
Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment