Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-developed-by: Anton Vasilyev <[email protected]> Signed-off-by: Anton Vasilyev <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information