Page MenuHomeFreeBSD

D20685.diff
No OneTemporary

D20685.diff

Index: head/sys/compat/linux/linux_mib.c
===================================================================
--- head/sys/compat/linux/linux_mib.c
+++ head/sys/compat/linux/linux_mib.c
@@ -146,7 +146,8 @@
return (EINVAL);
osrelease = sep + 1;
v2 = strtol(osrelease, &sep, 10);
- if (osrelease == sep || sep != eosrelease)
+ if (osrelease == sep ||
+ (sep != eosrelease && (sep + 1 >= eosrelease || *sep != '-')))
return (EINVAL);
v = LINUX_KERNVER(v0, v1, v2);

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 5:04 AM (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30800121
Default Alt Text
D20685.diff (479 B)

Event Timeline