diff options
| author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2022-11-29 12:01:59 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-01-22 09:24:40 +0100 |
| commit | 7acd650a0484d92985a0d6d867d980c6dd019885 (patch) | |
| tree | 654169d3e7401f6478b3d9f8f6819fd9c2704e26 /tools/perf/scripts/python | |
| parent | media: i2c: max9286: Print power-up GMSL link configuration (diff) | |
| download | linux-7acd650a0484d92985a0d6d867d980c6dd019885.tar.gz linux-7acd650a0484d92985a0d6d867d980c6dd019885.zip | |
media: ti: cal: fix possible memory leak in cal_ctx_create()
The memory of ctx is allocated in cal_ctx_create(), but it will
not be freed when cal_ctx_v4l2_init() fails, so add kfree() when
cal_ctx_v4l2_init() fails to fix it.
Fixes: d68a94e98a89 ("media: ti-vpe: cal: Split video device initialization and registration")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
