diff options
author | Will Deacon <[email protected]> | 2015-10-15 13:55:53 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-10-28 17:06:35 +0000 |
commit | 589cb22bbedacf325951014c07a35a2b01ca57f6 (patch) | |
tree | 00adb17d6a4a89a8e6ff6c4479979f80171d3119 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 32b88194f71d6ae7768a29f87fbba454728273ee (diff) |
arm64: compat: fix stxr failure case in SWP emulation
If the STXR instruction fails in the SWP emulation code, we leave *data
overwritten with the loaded value, therefore corrupting the data written
by a subsequent, successful attempt.
This patch re-jigs the code so that we only write back to *data once we
know that the update has happened.
Cc: <[email protected]>
Fixes: bd35a4adc413 ("arm64: Port SWP/SWPB emulation support from arm")
Reported-by: Shengjiu Wang <[email protected]>
Reported-by: Vladimir Murzin <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions