projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8680451
)
cfg80211: off by one in ieee80211_bss()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 24 Jan 2013 06:40:00 +0000
(09:40 +0300)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 24 Jan 2013 14:47:22 +0000
(15:47 +0100)
We do a:
sprintf(buf, " Last beacon: %ums ago",
elapsed_jiffies_msecs(bss->ts));
elapsed_jiffies_msecs() can return a 10 digit number so "buf" needs to
be 31 characters long.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/scan.c
b/net/wireless/scan.c
index 01592d7d4789e389fd565e7cf9fb194dc7ee7bb0..45f1618c8e239c2db21692cfa5358f460918b76d 100644
(file)
--- a/
net/wireless/scan.c
+++ b/
net/wireless/scan.c
@@
-1358,7
+1358,7
@@
ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info,
&iwe, IW_EV_UINT_LEN);
}
- buf = kmalloc(3
0
, GFP_ATOMIC);
+ buf = kmalloc(3
1
, GFP_ATOMIC);
if (buf) {
memset(&iwe, 0, sizeof(iwe));
iwe.cmd = IWEVCUSTOM;