drivers: nsos: fix nsos_sendmsg() error code
There is a goto statement with conversion using errno_from_nsos_mid(). Use NSOS_MID_ERRNO instead of ERRNO to return proper error code. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
parent
3666b46b2e
commit
7cf49cc6f7
1 changed files with 1 additions and 1 deletions
|
|
@ -708,7 +708,7 @@ static ssize_t nsos_sendmsg(void *obj, const struct msghdr *msg, int flags)
|
||||||
|
|
||||||
msg_iov = k_calloc(msg->msg_iovlen, sizeof(*msg_iov));
|
msg_iov = k_calloc(msg->msg_iovlen, sizeof(*msg_iov));
|
||||||
if (!msg_iov) {
|
if (!msg_iov) {
|
||||||
ret = -ENOMEM;
|
ret = -NSOS_MID_ENOMEM;
|
||||||
goto return_ret;
|
goto return_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue