Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103125
b: refs/heads/master
c: 208887d
h: refs/heads/master
i:
  103123: d4703a1
v: v3
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 17, 2008
1 parent fc041c8 commit b9dfb12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25519a2a769d42fc2733a8f119682272d99b1304
refs/heads/master: 208887d4cc5a5c1eeb68bd170e21e32b1129cd94
6 changes: 3 additions & 3 deletions trunk/net/wireless/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ static int get_priv_size(__u16 args)
/*
* Re-calculate the size of private arguments
*/
static int adjust_priv_size(__u16 args, union iwreq_data *wrqu)
static int adjust_priv_size(__u16 args, struct iw_point *iwp)
{
int num = wrqu->data.length;
int num = iwp->length;
int max = args & IW_PRIV_SIZE_MASK;
int type = (args & IW_PRIV_TYPE_MASK) >> 12;

Expand Down Expand Up @@ -976,7 +976,7 @@ static int ioctl_private_call(struct net_device *dev, struct ifreq *ifr,
* avoid leaking kernel bits outside. */
if (!(descr->get_args & IW_PRIV_SIZE_FIXED)) {
extra_size = adjust_priv_size(descr->get_args,
&(iwr->u));
&(iwr->u.data));
}

err = copy_to_user(iwr->u.data.pointer, extra,
Expand Down

0 comments on commit b9dfb12

Please sign in to comment.