aboutsummaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-01-14 16:10:12 +0000
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:41 +0200
commit14a2cf71d32c298660f18c3b65dabd6ce8a5a011 (patch)
tree12aca3b3ebca353aa5af03065c976f0456f99f27 /kernel/sysctl_binary.c
parent2be47cd0a3dd607963e0ac4524488caab93c1724 (diff)
MPILIB: Fix comparison of negative MPIs
If u and v both represent negative integers and their limb counts happen to differ, mpi_cmp will always return a positive value - this is obviously bogus. u is smaller than v if and only if it is larger in absolute value. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions