summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorEvgeny Novikov <novikov@ispras.ru>2020-07-23 20:46:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-26 12:49:07 +0300
commit2dc74b9a9a9f4a569f4486e1e093a769cdd4f7d7 (patch)
tree2c571f586592614f2454c5b7207afdd40ed22cca /tools/testing
parent630170dfc73ae79a8d7cb623b0b06a92f29e22d8 (diff)
downloadlinux-2dc74b9a9a9f4a569f4486e1e093a769cdd4f7d7.tar.xz
media: camss: fix memory leaks on error handling paths in probe
[ Upstream commit f45882cfb152f5d3a421fd58f177f227e44843b9 ] camss_probe() does not free camss on error handling paths. The patch introduces an additional error label for this purpose. Besides, it removes call of v4l2_async_notifier_cleanup() from camss_of_parse_ports() since its caller, camss_probe(), cleans up all its resources itself. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov <novikov@ispras.ru> Co-developed-by: Anton Vasilyev <vasilyev@ispras.ru> Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions