]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: fix error checking for earlycon address
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 23 Oct 2015 11:47:20 +0000 (20:47 +0900)
committerRob Herring <robh@kernel.org>
Tue, 27 Oct 2015 20:52:29 +0000 (15:52 -0500)
commitab1b155a4c71ba3a6c93abda37057ac4a7144641
tree96120b89056d141f2a0e4ed43c730ca3030117ee
parent199cc5acde672c1c5e505a4f53de9422280488f5
of/fdt: fix error checking for earlycon address

fdt_translate_address() returns OF_BAD_ADDR on error.  It is defined as
a u64 value, so the variable "addr" should be defined as u64 as well.

Fixes: a31f8f8f3e26 ("of/fdt: add FDT serial scanning for earlycon")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c