Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpmsgfs: fix ioctl operation can not work bug #6864

Merged
merged 1 commit into from Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion fs/rpmsgfs/rpmsgfs_client.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion fs/rpmsgfs/rpmsgfs_server.c
Expand Up @@ -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,
Expand Down