commit | e3e264343bac8f2bbcacdf84c13383766b0e6aff | [log] [tgz] |
---|---|---|
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | Tue Jun 28 11:29:42 2022 +0200 |
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | Wed Jun 29 12:09:52 2022 +0200 |
tree | 4c55ca0a1f1922656a1bbb47a48e92bcfd607a23 | |
parent | 3706043e9586c7c3a11ed9592bfaeb5ac9d2a27c [diff] |
Return network info error code The error code from the core side was not correctly propagated to user space. Change-Id: I40e502f8dc3a77de064f441beeb62603d013e318
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 @@ goto deregister; } + ret = info->errno; + deregister: ethosu_mailbox_deregister(&info->edev->mailbox, &info->msg); ethosu_network_put(info->net);