spapr: Fix bug in h_signal_sys_reset()
commitf57467e3b326c7736f8e481fd6b680f30e575c87
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Thu, 3 Aug 2017 06:28:27 +0000 (3 16:28 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 9 Aug 2017 04:04:28 +0000 (9 14:04 +1000)
tree6940dae5815c1cf83a403b2c5445267662c4627e
parent325837ca3851d7e6761649a44ea3c111e2e1757f
spapr: Fix bug in h_signal_sys_reset()

The unicast case in h_signal_sys_reset() seems to be broken:
rather than selecting the target CPU, it looks like it will pick
either the first CPU or fail to find one at all.

Fix it by using the search function rather than open coding the
search.

This was found by inspection; the code appears to be unused because
the Linux kernel only uses the broadcast target.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_hcall.c