summaryrefslogtreecommitdiff
path: root/drivers/misc/ad525x_dpot.c
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2021-08-30 15:02:09 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-09-14 15:00:03 +0300
commitd53c66594dc7606b191bb2976901a691d291a316 (patch)
tree96c645eb65a227e51abb0fab7481e9cdb7cd5f05 /drivers/misc/ad525x_dpot.c
parent25a1433216489de4abc889910f744e952cb6dbae (diff)
habanalabs: fix potential race in interrupt wait ioctl
We have a potential race where a user interrupt can be received in between user thread value comparison and before request was added to wait list. This means that if no consecutive interrupt will be received, user thread will timeout and fail. The solution is to add the request to wait list before we perform the comparison. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/ad525x_dpot.c')
0 files changed, 0 insertions, 0 deletions