]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: mvebu: don't dereference null bd pointer
authorChris Packham <judge.packham@gmail.com>
Tue, 22 Oct 2019 07:05:25 +0000 (20:05 +1300)
committerStefan Roese <sr@denx.de>
Thu, 14 Nov 2019 07:28:39 +0000 (08:28 +0100)
commit2ec330fcc2d11f8f420ad835c827c6ad29a44a06
tree7cce0f13cc622451a6f6beb1454cbda4d7cdac47
parent3ff1ff3ff76c15efe0451309af084ee6c096c583
ARM: mvebu: don't dereference null bd pointer

As mentioned in doc/README.arm-relocation gd->bd is not available in
dram_init() so we shouldn't attempt to access it.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/dram.c