aboutsummaryrefslogtreecommitdiff
path: root/kernel/rpmsg/ethosu_rpmsg_network_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rpmsg/ethosu_rpmsg_network_info.c')
-rw-r--r--kernel/rpmsg/ethosu_rpmsg_network_info.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/rpmsg/ethosu_rpmsg_network_info.c b/kernel/rpmsg/ethosu_rpmsg_network_info.c
index 36b6290..2445a09 100644
--- a/kernel/rpmsg/ethosu_rpmsg_network_info.c
+++ b/kernel/rpmsg/ethosu_rpmsg_network_info.c
@@ -73,8 +73,12 @@ int ethosu_rpmsg_network_info_request(struct device *dev,
info->msg.fail = ethosu_rpmsg_network_info_fail;
ret = ethosu_rpmsg_mailbox_register(mailbox, &info->msg);
- if (ret < 0)
+ if (ret < 0) {
+ dev_err(dev,
+ "Network info create. Failed to register message in mailbox. ret=%d",
+ ret);
goto kfree;
+ }
/* Get reference to network */
ethosu_rpmsg_network_get(info->net);