aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2020-12-16 23:39:56 +0000
committerThomas Bogendoerfer <[email protected]>2020-12-28 23:26:16 +0100
commit4d4f9c1a17a3480f8fe523673f7232b254d724b7 (patch)
tree19e316e32f1ced9893a03188f3826ee4d6e5e483 /tools/perf/util/scripting-engines/trace-event-python.c
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
MIPS: boot: Fix unaligned access with CONFIG_MIPS_RAW_APPENDED_DTB
The compressed payload is not necesarily 4-byte aligned, at least when compiling with Clang. In that case, the 4-byte value appended to the compressed payload that corresponds to the uncompressed kernel image size must be read using get_unaligned_le32(). This fixes Clang-built kernels not booting on MIPS (tested on a Ingenic JZ4770 board). Fixes: b8f54f2cde78 ("MIPS: ZBOOT: copy appended dtb to the end of the kernel") Cc: <[email protected]> # v4.7 Signed-off-by: Paul Cercueil <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions