From: Arnd Bergmann Date: Sat, 7 Nov 2009 06:51:16 +0000 (-0800) Subject: net, compat_ioctl: handle socket ioctl abuses in tty drivers X-Git-Tag: v2.6.33-rc1~388^2~483 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9646e7ce3d1955478aa0573b36c151ab4b649486;p=pandora-kernel.git net, compat_ioctl: handle socket ioctl abuses in tty drivers Slip and a few other drivers use the same ioctl numbers on tty devices that are normally meant for sockets. This causes problems with our compat_ioctl handling that tries to convert the data structures in a different format. Fortunately, these five drivers all use 32 bit compatible data structures in the ioctl numbers, so we can just add a trivial compat_ioctl conversion function to each of them. SIOCSIFENCAP and SIOCGIFENCAP do not need to live in fs/compat_ioctl.c after this any more, and they are not used on any sockets. Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed