summaryrefslogtreecommitdiff
path: root/kexec/kexec.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-11-13 11:34:18 +1100
committerSimon Horman <horms@verge.net.au>2014-11-13 09:59:39 +0900
commitbd2cfb7791d47ba697ec51edfc18bedc85252fe2 (patch)
tree111466607850158f9a50cf7fdc730846747228de /kexec/kexec.c
parentfc231094d9c0b84802f195fc436bcb24b7b251d7 (diff)
kexec/fs2dt: Fix sorting of device tree
Commit b02d735bf252 ('ppc64 kdump device_tree sort') added code to sort device tree properties, but it had a few issues. A compare routine needs to return -1 and 1. The special case for sorting properties with unit addresses only returned 1 and ignored the opposite case, which screwed up the sorting. We were missing a few more things: - Need to check both basenames are the same length - Need to check both basenames match I noticed this when looking at the NUMA topology after a kexec, and it had shifted. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
0 files changed, 0 insertions, 0 deletions