Hi Paolo, On 04/22/2018 04:22 PM, Richard Henderson wrote: > On 04/21/2018 01:21 PM, Philippe Mathieu-Daudé wrote: >> This fixes the following ASan warning: >> >> $ qemu-system-xtensa -M kc705 -m 128M -semihosting -nographic -monitor >> null -kernel Image.elf >> include/hw/elf_ops.h:179:5: runtime error: null pointer passed as argument >> 1, which is declared to never be null >> >> Reported-by: AddressSanitizer >> Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> >> --- >> include/hw/elf_ops.h | 39 ++++++++++++++++++++++----------------- >> 1 file changed, 22 insertions(+), 17 deletions(-) > > Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Since this patch isn't Xtensa specific, can it goes via your MISC tree? Thanks, Phil.