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:
commit
ae8a6e6e88
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user