diff options
| author | Christophe JAILLET <[email protected]> | 2020-06-25 22:19:47 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-19 08:14:00 +0200 |
| commit | 94b9ce6870f9c90ac92505482689818b254312f7 (patch) | |
| tree | 5ade3eb3b19ef32fc5cb5a0c52a49b9b5d5c6944 /tools/perf/scripts/python | |
| parent | b3ab1c6058fad8cd5726f24e9ed9053e43bb2af4 (diff) | |
media: s5p-g2d: Fix a memory leak in an error handling path in 'g2d_probe()'
Memory allocated with 'v4l2_m2m_init()' must be freed by a corresponding
call to 'v4l2_m2m_release()'
Also reorder the code at the end of the probe function so that
'video_register_device()' is called last.
Update the error handling path accordingly.
Fixes: 5ce60d790a24 ("[media] s5p-g2d: Add DT based discovery support")
Fixes: 918847341af0 ("[media] v4l: add G2D driver for s5p device family")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
[[email protected]: checkpatch: align with parenthesis]
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions