aboutsummaryrefslogtreecommitdiffstats
path: root/lib/spinlock_debug.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2012-10-05 00:13:18 +0000
committerLinus Torvalds <[email protected]>2012-10-05 18:04:57 +0000
commite96875677fb2b7cb739c5d7769824dff7260d31d (patch)
tree4d33caeb4dc7584832945427ed8890b3e5c856db /lib/spinlock_debug.c
parentlib/Kconfig.debug: adjust hard-lockup related Kconfig options (diff)
downloadkernel-e96875677fb2b7cb739c5d7769824dff7260d31d.tar.gz
kernel-e96875677fb2b7cb739c5d7769824dff7260d31d.zip
lib/gcd.c: prevent possible div by 0
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 <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions