diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-06-28 11:29:42 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-06-29 12:09:52 +0200 |
commit | e3e264343bac8f2bbcacdf84c13383766b0e6aff (patch) | |
tree | 4c55ca0a1f1922656a1bbb47a48e92bcfd607a23 | |
parent | 3706043e9586c7c3a11ed9592bfaeb5ac9d2a27c (diff) | |
download | ethos-u-linux-driver-stack-e3e264343bac8f2bbcacdf84c13383766b0e6aff.tar.gz |
Return network info error code
The error code from the core side was not correctly propagated to
user space.
Change-Id: I40e502f8dc3a77de064f441beeb62603d013e318
-rw-r--r-- | kernel/ethosu_network_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/ethosu_network_info.c b/kernel/ethosu_network_info.c index da95309..52adf9c 100644 --- a/kernel/ethosu_network_info.c +++ b/kernel/ethosu_network_info.c @@ -116,6 +116,8 @@ int ethosu_network_info_request(struct ethosu_network *net, goto deregister; } + ret = info->errno; + deregister: ethosu_mailbox_deregister(&info->edev->mailbox, &info->msg); ethosu_network_put(info->net); |