microblaze: boot.c: Don't try to find NULL file
commitd4c6d3600beab8b976f373f6e5b68066e9b9fdaa
authorAlistair Francis <alistair.francis@xilinx.com>
Mon, 22 Jan 2018 19:43:16 +0000 (22 11:43 -0800)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Fri, 26 Jan 2018 10:09:02 +0000 (26 11:09 +0100)
tree6de2600624ec739de466148afc8696bf78cebf20
parent2077fef91d5eb8e3745a84fabd87a5ee7d2b535d
microblaze: boot.c: Don't try to find NULL file

Previously if no device tree was passed to microblaze_load_kernel() then
qemu_find_file() would try to find a NULL pointer. To avoid this put a
check around qemu_find_file().

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
hw/microblaze/boot.c