1
0
Fork 0
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:
Jiuzhu Dong 2022-08-12 20:35:02 +08:00 committed by Petro Karashchenko
parent ca61c40453
commit 9340d6e0d7

View file

@ -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 */
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);
return ret;