diff options
author | Hans Verkuil <[email protected]> | 2022-05-10 13:59:48 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2022-05-13 11:27:47 +0200 |
commit | 5f4eb16750511125aa1a874dd8cf1682a9d6a8a7 (patch) | |
tree | e71e3acf0c948f6a9105b69d5df6c7b5eae96d6b /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 60965c6a1960988bcb5ad3b530ccd133af5cc85d (diff) |
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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions