From: Arnd Bergmann Date: Sat, 7 Nov 2009 06:52:32 +0000 (-0800) Subject: net/tun: handle compat_ioctl directly X-Git-Tag: v2.6.33-rc1~388^2~484 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50857e2a59d8beddc6bb76137df026d67f30d5ca;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed