Skip to content
Commit b45e9d76 authored by YueHaibing's avatar YueHaibing Committed by Michael Ellerman
Browse files

powerpc/pseries/memory-hotplug: Fix return value type of find_aa_index



The variable 'aa_index' is defined as an unsigned value in
update_lmb_associativity_index(), but find_aa_index() may return -1
when dlpar_clone_property() fails. So change find_aa_index() to return
a bool, which indicates whether 'aa_index' was found or not.

Fixes: c05a5a40 ("powerpc/pseries: Dynamic add entires to associativity lookup array")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarNathan Fontenot <nfont@linux.vnet.ibm.com>
[mpe: Tweak changelog, rename is_found to just found]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent b90484ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment