summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/6pack.c
diff options
context:
space:
mode:
authorArnd Bergmann2009-11-07 07:52:32 +0100
committerDavid S. Miller2009-11-07 07:52:32 +0100
commit50857e2a59d8beddc6bb76137df026d67f30d5ca (patch)
tree7b6d244ad6fa07ff199c7d1436750d535b6b8dcd /drivers/net/hamradio/6pack.c
parentcompat: add struct compat_ifreq etc to compat.h (diff)
downloadkernel-qcow2-linux-50857e2a59d8beddc6bb76137df026d67f30d5ca.tar.gz
kernel-qcow2-linux-50857e2a59d8beddc6bb76137df026d67f30d5ca.tar.xz
kernel-qcow2-linux-50857e2a59d8beddc6bb76137df026d67f30d5ca.zip
net/tun: handle compat_ioctl directly
The tun driver is the only code in the kernel that operates on a character device with struct ifreq. Change the driver to handle the conversion itself so we can contain the remaining ifreq handling in the socket layer. This also fixes a bug in the handling of invalid ioctl numbers on an unbound tun device. The driver treats this as a TUNSETIFF in native mode, but there is no way for the generic compat_ioctl() function to emulate this behaviour. Possibly the driver was only doing this accidentally anyway, but if any code relies on this misfeature, it now also works in compat mode. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio/6pack.c')
0 files changed, 0 insertions, 0 deletions