diff options
| author | Breno Leitao <[email protected]> | 2018-08-23 20:26:39 -0300 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-09-19 21:58:09 +1000 |
| commit | 8ac9e5bfd8cf41ef106ac97267117e5209627c74 (patch) | |
| tree | f40cab0b1fdd7cd64c4c335e0abdfbe04da48d65 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 6f8e45f7eb1bee5efdbe4a9cfe4a45627403c5fb (diff) | |
powerpc/xive: Use xive_cpu->chip_id instead of looking it up again
Function xive_native_get_ipi() might use chip_id without it being
initialized, if the CPU node is not found, as reported by smatch:
error: uninitialized symbol 'chip_id'
As suggested by Cédric, we can use xc->chip_id instead of consulting
the device tree for chip id, which is safe since xive_prepare_cpu()
should have initialized ->chip_id by the time xive_native_get_ipi() is
called.
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
[mpe: Tweak change log]
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions