aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_sta.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r--net/mac80211/debugfs_sta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index 49a1c70bbd70..0dedb4bd9623 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -221,6 +221,9 @@ static ssize_t sta_agg_status_write(struct file *file, const char __user *userbu
221 return -EINVAL; 221 return -EINVAL;
222 222
223 tid = simple_strtoul(buf, NULL, 0); 223 tid = simple_strtoul(buf, NULL, 0);
224 ret = kstrtoul(buf, 0, &tid);
225 if (ret)
226 return ret;
224 227
225 if (tid >= IEEE80211_NUM_TIDS) 228 if (tid >= IEEE80211_NUM_TIDS)
226 return -EINVAL; 229 return -EINVAL;