summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-10-09 21:52:44 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-22 12:08:31 +0200
commit05c14c03138532a3cb2aa29c2960445c8753343b (patch)
treee1050fde5da9e88b0390cfecb3f8234484966d4a /fs/lockd
parent727f13616c45caa72e4325c5027c1a8f41e745a9 (diff)
downloadlinux-stable-05c14c03138532a3cb2aa29c2960445c8753343b.tar.gz
linux-stable-05c14c03138532a3cb2aa29c2960445c8753343b.tar.bz2
linux-stable-05c14c03138532a3cb2aa29c2960445c8753343b.zip
powerpc/perf/hv-24x7: Fix incorrect comparison in memord
In the hv-24x7 code there is a function memord() which tries to implement a sort function return -1, 0, 1. However one of the conditions is incorrect, such that it can never be true, because we will have already returned. I don't believe there is a bug in practice though, because the comparisons are an optimisation prior to calling memcmp(). Fix it by swapping the second comparision, so it can be true. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions