Skip to content
Commit c8e7ff41 authored by Jann Horn's avatar Jann Horn Committed by Jiri Kosina
Browse files

HID: uhid: Use READ_ONCE()/WRITE_ONCE() for ->running



The flag uhid->running can be set to false by uhid_device_add_worker()
without holding the uhid->devlock. Mark all reads/writes of the flag
that might race with READ_ONCE()/WRITE_ONCE() for clarity and
correctness.

Signed-off-by: default avatarJann Horn <jannh@google.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 4ea5763f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment