Re: [Xen-devel] [PATCHv1 1/2] xen/prvicmd: use ENOTTY if the IOCTL is not supported

2016-08-04 Thread Boris Ostrovsky
On 08/03/2016 01:03 PM, David Vrabel wrote: > The standard return value for ioctl(2) where the cmd is not supported > is ENOTTY, not EINVAL. > > Signed-off-by: David Vrabel > --- > drivers/xen/privcmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/xen/privcmd.c

[Xen-devel] [PATCHv1 1/2] xen/prvicmd: use ENOTTY if the IOCTL is not supported

2016-08-03 Thread David Vrabel
The standard return value for ioctl(2) where the cmd is not supported is ENOTTY, not EINVAL. Signed-off-by: David Vrabel --- drivers/xen/privcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 702040f..ac76bc4 100644 --- a