diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-05-10 14:59:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-13 12:27:47 +0300 |
commit | 5f4eb16750511125aa1a874dd8cf1682a9d6a8a7 (patch) | |
tree | e71e3acf0c948f6a9105b69d5df6c7b5eae96d6b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 60965c6a1960988bcb5ad3b530ccd133af5cc85d (diff) | |
download | linux-5f4eb16750511125aa1a874dd8cf1682a9d6a8a7.tar.xz |
media: cec-pin.c: don't zero work_pin_num_events in adap_enable
It's OK to keep the pending pin events when disabling or
enabling the 'adapter'. Zeroing this can cause a race condition
if this happens when the pin kthread is handling a pin event
and calls atomic_dec later, causing work_pin_num_events to become
negative.
Just leave pending events in the queue, they'll be read eventually.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions