Re: [PATCH 04/10] kill dev_ifsioc()
From: Christoph Hellwig
Date: Mon Jan 22 2018 - 11:47:36 EST
On Thu, Jan 18, 2018 at 07:37:49PM +0000, Al Viro wrote:
> From: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>
> it's been equivalent to sock_do_ioctl() since 2009...
>
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Note that we have two different dev_ifsioc() defintions, which
is a little weird.
But the net/socket.c one does indeed seem superflous as there is no
point in doing the compat_alloc_user_space / copy_in_user as far
as I can tell. compat_ifreq differs from ifreq in the size of
ifru_data, but it seems none of these ioctls actually use it.
A better changelog would be nice, though.