diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2022-04-12 16:24:49 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-04-14 15:29:13 -0400 |
commit | 250e64a3f06c42e993e7b8c6f727d43b5b9f8c96 (patch) | |
tree | 469d936f31dc90ae9a295ffcf0e9e5bda8501251 /drivers/iio/light/lm3533-als.c | |
parent | 9e12b5947bbaa74db32e24d77ebf3bd71015970c (diff) |
drm/amdkfd: fix race condition in kfd_wait_on_events
Add the waiters to the wait queue during initialization, while holding the
event spinlock. Otherwise the waiter will not get activated if the event
signals before being added to the wait queue.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang<Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/iio/light/lm3533-als.c')
0 files changed, 0 insertions, 0 deletions