vfs: fix occasional ISR context mismatch in event fd

This commit is contained in:
Jiacheng Guo 2021-09-17 17:31:20 +08:00
parent eccb1f85d8
commit 7eafcb0372

View File

@ -260,7 +260,7 @@ static ssize_t event_write(int fd, const void *data, size_t size)
return ret;
}
if (xPortInIsrContext()) {
if (!xPortCanYield()) {
ret = signal_event_fd_from_isr(fd, data, size);
} else {
const uint64_t *val = (const uint64_t *)data;