[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120525144359.712cb21d@pyramind.ukuu.org.uk>
Date: Fri, 25 May 2012 14:43:59 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Will Deacon <will.deacon@....com>
Cc: linux-kernel@...r.kernel.org, Al Viro <viro@...iv.linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown
ioctl command
On Fri, 25 May 2012 11:39:13 +0100
Will Deacon <will.deacon@....com> wrote:
> As described in commit 07d106d0a ("vfs: fix up ENOIOCTLCMD error
> handling"), drivers should return -ENOIOCTLCMD if they receive an ioctl
> command which they don't understand. Doing so will result in -ENOTTY
> being returned to userspace, which matches the behaviour of the compat
> layer if it fails to translate an ioctl command.
>
> This patch fixes the pipe ioctl to return -ENOIOCTLCMD instead of
> -EINVAL when passed an unknown ioctl command.
>
> Cc: Al Viro <viro@...iv.linux.org.uk>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Signed-off-by: Will Deacon <will.deacon@....com>
Acked-by: Alan Cox <alan@...ux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists