The patch titled Subject: lib/lcm.c: ensure correct result whenever it fits has been removed from the -mm tree. Its filename was lib-lcmc-ensure-correct-result-whenever-it-fits.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Subject: lib/lcm.c: ensure correct result whenever it fits Ensure that lcm(a,b) returns the mathematically correct result, provided it fits in an unsigned long. The current version returns garbage if a*b overflows, even if the final result would fit. Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Cc: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/lcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN lib/lcm.c~lib-lcmc-ensure-correct-result-whenever-it-fits lib/lcm.c --- a/lib/lcm.c~lib-lcmc-ensure-correct-result-whenever-it-fits +++ a/lib/lcm.c @@ -7,7 +7,7 @@ unsigned long lcm(unsigned long a, unsigned long b) { if (a && b) - return (a * b) / gcd(a, b); + return (a / gcd(a, b)) * b; else if (b) return b; _ Patches currently in -mm which might be from linux@xxxxxxxxxxxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html