提交 c3e448cd 编写于 作者: C Colin Ian King 提交者: Jakub Kicinski

vsock: fix the error return when an invalid ioctl command is used

Currently when an invalid ioctl command is used the error return
is -EINVAL.  Fix this by returning the correct error -ENOIOCTLCMD.
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Reviewed-by: NStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 6bc8f20c
......@@ -2072,7 +2072,7 @@ static long vsock_dev_do_ioctl(struct file *filp,
break;
default:
retval = -EINVAL;
retval = -ENOIOCTLCMD;
}
return retval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册