Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265823
b: refs/heads/master
c: b38de31
h: refs/heads/master
i:
  265821: 843a6c4
  265819: 2f90d78
  265815: 52d2b02
  265807: 52f5ee2
  265791: a105d5a
v: v3
  • Loading branch information
Peter Huewe authored and John W. Linville committed Aug 29, 2011
1 parent 78c644f commit 3cd886f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: e0a8c583c39580a97919c026598eedbf014cd8a5
refs/heads/master: b38de31ffa870323c4f6957904303477c88fe905
14 changes: 3 additions & 11 deletions trunk/net/mac80211/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,12 @@ static ssize_t uapsd_queues_write(struct file *file,
size_t count, loff_t *ppos)
{
struct ieee80211_local *local = file->private_data;
unsigned long val;
char buf[10];
size_t len;
u8 val;
int ret;

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EFAULT;
buf[len] = '\0';

ret = strict_strtoul(buf, 0, &val);

ret = kstrtou8_from_user(user_buf, count, 0, &val);
if (ret)
return -EINVAL;
return ret;

if (val & ~IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK)
return -ERANGE;
Expand Down

0 comments on commit 3cd886f

Please sign in to comment.