diff options
| author | Krzysztof Ha?asa <[email protected]> | 2018-06-28 17:45:07 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-07-25 08:34:28 -0400 |
| commit | 5a1a2f63d840dc2631505b607e11ff65ac1b7d3c (patch) | |
| tree | b99b659788c801f75a04b59f728b5f71eb0f1de4 /tools/perf/scripts/python | |
| parent | acbea6798955e92eefa5fb84ecaa677a763c8762 (diff) | |
media: tw686x: Fix oops on buffer alloc failure
The error path currently calls tw686x_video_free() which requires
vc->dev to be initialized, causing a NULL dereference on uninitizalized
channels.
Fix this by setting the vc->dev fields for all the channels first.
Fixes: f8afaa8dbc0d ("[media] tw686x: Introduce an interface to support multiple DMA modes")
Signed-off-by: Krzysztof Ha?asa <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions