From: Arnd Bergmann Date: Wed, 11 Nov 2009 03:39:40 +0000 (+0000) Subject: net/compat: fix dev_ifsioc emulation corner cases X-Git-Tag: v2.6.33-rc1~388^2~397 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2116ed223c88b6c424f42398e54d1607dc785ba;p=pandora-kernel.git net/compat: fix dev_ifsioc emulation corner cases Handling for SIOCSHWTSTAMP is broken on architectures with a split user/kernel address space like s390, because it passes a real user pointer while using set_fs(KERNEL_DS). A similar problem might arise the next time somebody adds code to dev_ifsioc. Split up dev_ifsioc into three separate functions for SIOCSHWTSTAMP, SIOC*IFMAP and all other numbers so we can get rid of set_fs in all potentially affected cases. Signed-off-by: Arnd Bergmann Cc: Patrick Ohly Cc: David S. Miller Signed-off-by: David S. Miller --- Reading git-diff-tree failed