diff options
author | Jann Horn <jannh@google.com> | 2022-01-14 14:33:31 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-01-19 15:59:05 +0100 |
commit | c8e7ff41f819b0c31c66c5196933c26c18f7681f (patch) | |
tree | 3f1835897eb97677157348baaadc41e03295d1f2 /drivers/connector | |
parent | 4ea5763fb79ed89b3bdad455ebf3f33416a81624 (diff) | |
download | linux-c8e7ff41f819b0c31c66c5196933c26c18f7681f.tar.bz2 |
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: Jann Horn <jannh@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/connector')
0 files changed, 0 insertions, 0 deletions