mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
6bc8f20c1d
commit
c3e448cdc0
@ -2072,7 +2072,7 @@ static long vsock_dev_do_ioctl(struct file *filp,
|
||||
break;
|
||||
|
||||
default:
|
||||
retval = -EINVAL;
|
||||
retval = -ENOIOCTLCMD;
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user