]> git.baikalelectronics.ru Git - uboot.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)
commit7960b905c4437ffa3643ee67680d32c413b53a25
tree7cce0f13cc622451a6f6beb1454cbda4d7cdac47
parent30383ef986eff883909f59e7a405347ed589fd65
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