The current code treats everything after the x.y.z- as a pre/rc level version, which isn't right for the following example, at least: 3.11.10-301.fc20.ppc64p7 which puts 301 as ver->pre. Ignore all non "-rc" or "-pre" suffixes. Signed-off-by: Nishanth Aravamudan <n...@linux.vnet.ibm.com>
diff --git a/kernel-features.c b/kernel-features.c index e7639a4..c93aabd 100644 --- a/kernel-features.c +++ b/kernel-features.c @@ -125,14 +125,18 @@ static int str_to_ver(const char *str, struct kernel_version *ver) *(start + 1) == 'r' && *(start + 2) == 'e') start += 3; + else { + /* + * For now we ignore any extraversions besides + * pre and rc versions and treat them as equal + * to the base version. + */ + return 0; + } ver->pre = strtol(start, &end, 10); } - /* - * For now we ignore any extraversions besides pre and post versions - * and treat them as equal to the base version. - */ return 0; } ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel