diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-03 20:21:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-03 20:21:31 -0500 |
commit | 0033d5ad27a6db33a55ff39951d3ec61a8c13b89 (patch) | |
tree | 4312ad7fb4821ccd38a4a0aba64b6bb560d53733 /net/ipv4/ipmr.c | |
parent | 9690c636ac118b6662f28308bee817343d9932d8 (diff) |
net: Fix bug in compat SIOCGETSGCNT handling.
Commit 709b46e8d90badda1898caea50483c12af178e96 ("net: Add compat
ioctl support for the ipv4 multicast ioctl SIOCGETSGCNT") added the
correct plumbing to handle SIOCGETSGCNT properly.
However, whilst definiting a proper "struct compat_sioc_sg_req" it
isn't actually used in ipmr_compat_ioctl().
Correct this oversight.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 7e41ac0b9260..fce10a080bd6 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -1446,7 +1446,7 @@ struct compat_sioc_sg_req { | |||
1446 | 1446 | ||
1447 | int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg) | 1447 | int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg) |
1448 | { | 1448 | { |
1449 | struct sioc_sg_req sr; | 1449 | struct compat_sioc_sg_req sr; |
1450 | struct mfc_cache *c; | 1450 | struct mfc_cache *c; |
1451 | struct net *net = sock_net(sk); | 1451 | struct net *net = sock_net(sk); |
1452 | struct mr_table *mrt; | 1452 | struct mr_table *mrt; |