diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-11-09 05:56:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-09 05:56:21 +0100 |
commit | fab2532ba50b287647d95046c4f3b37bf6379d37 (patch) | |
tree | 2fe0adee55965f6e2f6f0a4147add521e89cb098 /net/socket.c | |
parent | udp: multicast RX should increment SNMP/sk_drops counter in allocation failures (diff) | |
download | linux-fab2532ba50b287647d95046c4f3b37bf6379d37.tar.xz linux-fab2532ba50b287647d95046c4f3b37bf6379d37.zip |
net, compat_ioctl: fix SIOCGMII ioctls
SIOCGMIIPHY and SIOCGMIIREG return data through ifreq,
so it needs to be converted on the way out as well.
SIOCGIFPFLAGS is unused, but has the same problem in theory.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c index bfbde200b743..224e7f73fdf0 100644 --- a/net/socket.c +++ b/net/socket.c @@ -2746,7 +2746,10 @@ static int dev_ifsioc(struct net *net, struct socket *sock, case SIOCGIFBRDADDR: case SIOCGIFDSTADDR: case SIOCGIFNETMASK: + case SIOCGIFPFLAGS: case SIOCGIFTXQLEN: + case SIOCGMIIPHY: + case SIOCGMIIREG: if (copy_to_user(uifr32, &ifr, sizeof(*uifr32))) return -EFAULT; break; |