aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/appletalk/ddp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 4b0ce2e2b46e..7cd08b45c52b 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1811,12 +1811,14 @@ static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1811static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) 1811static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1812{ 1812{
1813 /* 1813 /*
1814 * All Appletalk ioctls except SIOCATALKDIFADDR are standard. And 1814 * SIOCATALKDIFADDR is a SIOCPROTOPRIVATE ioctl number, so we
1815 * SIOCATALKDIFADDR is handled by upper layer as well, so there is 1815 * cannot handle it in common code. The data we access if ifreq
1816 * nothing to do. Eventually SIOCATALKDIFADDR should be moved 1816 * here is compatible, so we can simply call the native
1817 * here so there is no generic SIOCPROTOPRIVATE translation in the 1817 * handler.
1818 * system.
1819 */ 1818 */
1819 if (cmd == SIOCATALKDIFADDR)
1820 return atalk_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
1821
1820 return -ENOIOCTLCMD; 1822 return -ENOIOCTLCMD;
1821} 1823}
1822#endif 1824#endif