forked from nuttx/nuttx-update
fs/rpmsgfs: return ENOTTY to vfs to do cmd operate
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
ca61c40453
commit
9340d6e0d7
1 changed files with 4 additions and 0 deletions
|
@ -635,6 +635,10 @@ static int rpmsgfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||||
/* Call our internal routine to perform the ioctl */
|
/* Call our internal routine to perform the ioctl */
|
||||||
|
|
||||||
ret = rpmsgfs_client_ioctl(fs->handle, hf->fd, cmd, arg);
|
ret = rpmsgfs_client_ioctl(fs->handle, hf->fd, cmd, arg);
|
||||||
|
if (ret == 0 && (cmd == FIONBIO || cmd == FIOCLEX || cmd == FIONCLEX))
|
||||||
|
{
|
||||||
|
ret = -ENOTTY;
|
||||||
|
}
|
||||||
|
|
||||||
nxmutex_unlock(&fs->fs_lock);
|
nxmutex_unlock(&fs->fs_lock);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue