diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-05-16 16:53:09 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-05-16 17:50:41 +0200 |
commit | 5fcc28c7a90fc3f4ebc16a3697f14c9c668dda62 (patch) | |
tree | 9f5b0a173853a09bf107c4c2e65e6cf6d6041387 /utils/inference_runner | |
parent | fd6b8dc67c139a454942582dc64c0e2786a031e7 (diff) | |
download | ethos-u-linux-driver-stack-5fcc28c7a90fc3f4ebc16a3697f14c9c668dda62.tar.gz |
When IOCTL calls are handled and when sending messages to the mailbox,
the device mutex is locked. However, when received mailbox messages are
handled, the mutex is not locked so there are possible concurrent access
races in shared states e.g. an inference's status may be updated while
another IOCTL caller is reading it.
To avoid these races, the mutex is now locked while messages received
from the mailbox are handled.
Change-Id: I4d51da542410ab02fb0f890c939269c642176b2c
Diffstat (limited to 'utils/inference_runner')
0 files changed, 0 insertions, 0 deletions