diff options
| author | Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> | 2024-12-05 11:06:21 +0900 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-02-22 11:12:59 +0100 |
| commit | c2b96a6818159fba8a3bcc38262da9e77f9b3ec7 (patch) | |
| tree | 9ee9685482e6e60a4618ce3ae79fe5850e04d131 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | media: verisilicon: VP9: Fix typo (diff) | |
| download | linux-c2b96a6818159fba8a3bcc38262da9e77f9b3ec7.tar.gz linux-c2b96a6818159fba8a3bcc38262da9e77f9b3ec7.zip | |
media: platform: allgro-dvt: unregister v4l2_device on the error path
In allegro_probe(), the v4l2 device is not unregistered in the error
path, which results in a memory leak. Fix it by calling
v4l2_device_unregister() before returning error.
Fixes: d74d4e2359ec ("media: allegro: move driver out of staging")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Reviewed-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
