Files
linux/lib
Davidlohr Bueso 7151b69f69 lib/gcd.c: prevent possible div by 0
commit e96875677f upstream.

Account for all properties when a and/or b are 0:
gcd(0, 0) = 0
gcd(a, 0) = a
gcd(0, b) = b

Fixes no known problems in current kernels.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-13 05:28:03 +09:00
..
2011-10-03 11:40:37 -07:00
2011-03-11 14:25:50 +00:00
2011-06-15 20:03:59 -07:00
2009-11-03 16:06:53 +01:00
2011-03-31 11:26:23 -03:00
2010-07-11 22:16:32 +02:00
2012-10-13 05:28:03 +09:00
2010-05-25 08:07:06 -07:00
2010-04-06 15:52:11 -07:00
2010-08-09 20:45:05 -07:00
2011-06-01 16:06:04 -04:00
2010-11-22 13:25:13 +10:00
2011-05-25 08:39:52 -07:00
2011-08-15 18:31:35 -07:00
2011-11-11 09:37:12 -08:00
2011-03-31 11:26:23 -03:00
2011-03-11 15:14:48 -05:00
2010-06-16 18:08:13 +02:00
2010-01-11 09:34:05 -08:00
2011-03-31 11:26:23 -03:00
2010-05-19 22:40:47 -04:00