diff options
| author | Alexander Stein <[email protected]> | 2024-03-07 15:24:51 +0100 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-04-10 15:15:30 +0200 |
| commit | 6d8acd02c4c6a8f917eefac1de2e035521ca119d (patch) | |
| tree | 9611af6d4ceb6b9bfe4dd68403b1dac5891aa5b6 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 7cb8a625355d22c8e50726fc2ca663544eb8631f (diff) | |
media: v4l: async: Fix notifier list entry init
struct v4l2_async_notifier has several list_head members, but only
waiting_list and done_list are initialized. notifier_entry was kept
'zeroed' leading to an uninitialized list_head.
This results in a NULL-pointer dereference if csi2_async_register() fails,
e.g. node for remote endpoint is disabled, and returns -ENOTCONN.
The following calls to v4l2_async_nf_unregister() results in a NULL
pointer dereference.
Add the missing list head initializer.
Fixes: b8ec754ae4c5 ("media: v4l: async: Set v4l2_device and subdev in async notifier init")
Cc: <[email protected]> # for 6.6 and later
Signed-off-by: Alexander Stein <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions