mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Ensure the kernel component don't call userspace API
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
cf73496d9e
commit
9473434587
@@ -504,10 +504,8 @@ static int hostfs_rpmsg_unlink_handler(FAR struct rpmsg_endpoint *ept,
|
||||
uint32_t src, FAR void *priv)
|
||||
{
|
||||
FAR struct hostfs_rpmsg_unlink_s *msg = data;
|
||||
int ret;
|
||||
|
||||
ret = unlink(msg->pathname);
|
||||
msg->header.result = ret ? -get_errno() : 0;
|
||||
msg->header.result = nx_unlink(msg->pathname);
|
||||
return rpmsg_send(ept, msg, sizeof(*msg));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user