diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-10-12 15:32:56 +0200 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-11-06 09:36:00 +0100 |
commit | 45d47991f745094e328f32e769c22d811d397b1d (patch) | |
tree | 6963ec411fb444287fcb2c2c024604c2b26023d6 /kernel/ethosu_device.c | |
parent | 8f918c6b624da4867224ba99432d70766612eb06 (diff) | |
download | ethos-u-linux-driver-stack-45d47991f745094e328f32e769c22d811d397b1d.tar.gz |
Fix type validation in the network create UAPI
Currently, the network create UAPI will assume that any network type
that isn't a buffer is an index. This means that the Linux kernel NPU
driver will accept any network type value and the user won't get any
feedback that they have specified an incorrect type.
To resolve this, the Linux kernel NPU driver will now return -EINVAL if
an unknown network type is given and a test has been added to validate
this behavior.
Change-Id: Ib7d9f5d5451897787981aae61a4e0a6650a73e05
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'kernel/ethosu_device.c')
0 files changed, 0 insertions, 0 deletions