Skip to content
Commit 58e5349b authored by Jann Horn's avatar Jann Horn Committed by Greg Kroah-Hartman
Browse files

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

[ Upstream commit c8e7ff41

 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f7a3090b
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