Skip to content

Commit

Permalink
net: Fix bug in compat SIOCGETSGCNT handling.
Browse files Browse the repository at this point in the history
Commit 709b46e ("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 <[email protected]>
  • Loading branch information
davem330 committed Feb 4, 2011
1 parent 9690c63 commit 0033d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ struct compat_sioc_sg_req {

int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
{
struct sioc_sg_req sr;
struct compat_sioc_sg_req sr;
struct mfc_cache *c;
struct net *net = sock_net(sk);
struct mr_table *mrt;
Expand Down

0 comments on commit 0033d5a

Please sign in to comment.