Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147067630
D15952.id44224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
886 B
Referenced Files
None
Subscribers
None
D15952.id44224.diff
View Options
Index: sys/compat/linux/linux_mib.h
===================================================================
--- sys/compat/linux/linux_mib.h
+++ sys/compat/linux/linux_mib.h
@@ -50,7 +50,7 @@
#define LINUX_KPATCHLEVEL 6
#define LINUX_KSUBLEVEL 32
-#define LINUX_KERNVER(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#define LINUX_KERNVER(a,b,c) (((a) * 1000000) + ((b) * 1000) + (c))
#define LINUX_VERSION_CODE LINUX_KERNVER(LINUX_KVERSION, \
LINUX_KPATCHLEVEL, LINUX_KSUBLEVEL)
#define LINUX_KERNVERSTR(x) #x
Index: sys/compat/linux/linux_mib.c
===================================================================
--- sys/compat/linux/linux_mib.c
+++ sys/compat/linux/linux_mib.c
@@ -149,7 +149,7 @@
if (osrelease == sep || sep != eosrelease)
return (EINVAL);
- v = v0 * 1000000 + v1 * 1000 + v2;
+ v = LINUX_KERNVER(v0, v1, v2);
if (v < 1000000)
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 9, 1:36 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29427453
Default Alt Text
D15952.id44224.diff (886 B)
Attached To
Mode
D15952: Fix the Linux kernel version number calculation
Attached
Detach File
Event Timeline
Log In to Comment