Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nzxt-kraken3: Protect completions in raw event parsing with main spin…
…lock Through hidraw, userspace can cause a status report to be sent from the device. The parsing in kraken3_raw_event() may happen in parallel to a kraken3_get_status() call (which resets the completion for tracking the report) if it's running on a different CPU where bottom half interrupts are not disabled. Add spin_lock() calls around the completions to prevent race issues. Reference: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/drivers/hwmon/gigabyte_waterforce.c?h=hwmon-next&id=41c71105a845ec1458680f01644d032a5fbbe0d9 While at it, wrap the Z53 complete_all() with a completion_done(). Signed-off-by: Aleksa Savic <[email protected]>
- Loading branch information