Merge branch 'vsock-minor-clean-up-of-ioctl-error-handling'

Colin Ian King says:

====================
vsock: minor clean up of ioctl error handling

Two minor changes to the ioctl error handling.
====================

Link: https://lore.kernel.org/r/20201027090942.14916-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski 2020-10-29 17:43:23 -07:00
commit ae8a6e6e88

View File

@ -2072,8 +2072,7 @@ static long vsock_dev_do_ioctl(struct file *filp,
break;
default:
pr_err("Unknown ioctl %d\n", cmd);
retval = -EINVAL;
retval = -ENOIOCTLCMD;
}
return retval;