Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159728781
D5268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
584 B
Referenced Files
None
Subscribers
None
D5268.diff
View Options
Index: head/sys/net80211/ieee80211_var.h
===================================================================
--- head/sys/net80211/ieee80211_var.h
+++ head/sys/net80211/ieee80211_var.h
@@ -85,7 +85,7 @@
#define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024)
#define IEEE80211_TU_TO_MS(x) (((x) * 1024) / 1000)
/* XXX TODO: cap this at 1, in case hz is not 1000 */
-#define IEEE80211_TU_TO_TICKS(x)(((x) * 1024 * hz) / (1000 * 1000))
+#define IEEE80211_TU_TO_TICKS(x)(((uint64_t)(x) * 1024 * hz) / (1000 * 1000))
/*
* 802.11 control state is split into a common portion that maps
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 2:22 PM (4 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34052441
Default Alt Text
D5268.diff (584 B)
Attached To
Mode
D5268: net80211: fix possible overflow in IEEE80211_TU_TO_TICKS()
Attached
Detach File
Event Timeline
Log In to Comment