rpmsgfs: fix ioctl operation can not work bug

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6
2022-08-17 01:57:15 +08:00
committed by Xiang Xiao
parent a362c2caf9
commit 0b95148e5a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ static int rpmsgfs_ioctl_handler(FAR struct rpmsg_endpoint *ept,
if (cookie->result >= 0 && rsp->arglen > 0)
{
memcpy(cookie->data, (FAR void *)(uintptr_t)rsp->arg, rsp->arglen);
memcpy(cookie->data, (FAR void *)(uintptr_t)rsp->buf, rsp->arglen);
}
rpmsg_post(ept, &cookie->sem);
+1 -1
View File
@@ -480,7 +480,7 @@ static int rpmsgfs_ioctl_handler(FAR struct rpmsg_endpoint *ept,
}
msg->header.result = ret;
return rpmsg_send(ept, msg, sizeof(*msg));
return rpmsg_send(ept, msg, len);
}
static int rpmsgfs_sync_handler(FAR struct rpmsg_endpoint *ept,