mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
It is possible for userspace to set the job SRAM size to 0, but then still
have SRAM accesses in the command stream. When the job SRAM size is 0,
setting the region base register is skipped and a stale base address from
a prior job is used.
Check the region size against the job's SRAM size instead of just the size
of the SRAM. The job's SRAM size was already checked against the total SRAM
size.
Fixes:
|
||
|---|---|---|
| .. | ||
| ethosu_device.h | ||
| ethosu_drv.c | ||
| ethosu_drv.h | ||
| ethosu_gem.c | ||
| ethosu_gem.h | ||
| ethosu_job.c | ||
| ethosu_job.h | ||
| ethosu_perfmon.c | ||
| Kconfig | ||
| Makefile | ||