Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57664
b: refs/heads/master
c: 94b2385
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and John W. Linville committed Jun 11, 2007
1 parent c8974f3 commit e32dd07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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: 6cfb00823872d0181c5c72c2d457de93518d96e7
refs/heads/master: 94b23855c034ffa50e1f94f43ef4500520e4c36e
16 changes: 11 additions & 5 deletions trunk/drivers/net/wireless/libertas/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,14 @@ static int wlan_fwt_list_ioctl(wlan_private * priv, struct ifreq *req)
char *ptr = in_str;
static char out_str[128];
char *pbuf = out_str;
int ret;
int ret = 0;

lbs_deb_enter(LBS_DEB_IOCTL);

if (copy_from_user(in_str, wrq->u.data.pointer, sizeof(in_str)))
return -EFAULT;
if (copy_from_user(in_str, wrq->u.data.pointer, sizeof(in_str))) {
ret = -EFAULT;
goto out;
}

fwt_access.id = cpu_to_le32(simple_strtoul(ptr, &ptr, 10));

Expand All @@ -632,11 +634,15 @@ static int wlan_fwt_list_ioctl(wlan_private * priv, struct ifreq *req)
if (copy_to_user(wrq->u.data.pointer, (char *)out_str,
wrq->u.data.length)) {
lbs_deb_ioctl("FWT_LIST: Copy to user failed!\n");
return -EFAULT;
ret = -EFAULT;
goto out;
}

ret = 0;

out:
lbs_deb_leave(LBS_DEB_IOCTL);
return 0;
return ret;
}

/**
Expand Down

0 comments on commit e32dd07

Please sign in to comment.