diff options
author | Evgeny Novikov <novikov@ispras.ru> | 2020-07-23 19:46:51 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-08-06 13:58:40 +0200 |
commit | f45882cfb152f5d3a421fd58f177f227e44843b9 (patch) | |
tree | b373633380a287f8b206164be2c6729fc7191940 /arch | |
parent | media: davinci: vpif_capture: fix potential double free (diff) | |
download | linux-f45882cfb152f5d3a421fd58f177f227e44843b9.tar.xz linux-f45882cfb152f5d3a421fd58f177f227e44843b9.zip |
media: camss: fix memory leaks on error handling paths in probe
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions