image.c: Fix non-Android booting with ramdisk and/or device tree
authorTom Rini <trini@konsulko.com>
Tue, 27 Oct 2015 23:04:40 +0000 (19:04 -0400)
committerRaspbian forward porter <root@raspbian.org>
Thu, 17 Dec 2015 02:12:51 +0000 (02:12 +0000)
commitc77216204863112a9c67880a68a2d03bf0162497
tree00bd56932cc07742c77bc1d2460ee4ec01e1eab1
parent636a0d1755464d16a69a7ce505ec888a0cdbb0d7
image.c: Fix non-Android booting with ramdisk and/or device tree

In 1fec3c5 I added a check that if we had an Android image we default to
trying the kernel address for a ramdisk.  However when we don't have an
Android image buf is NULL and we oops here.  Ensure that we have 'buf'
to check first.

Reported-by: elipe Balbi <balbi@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name image.c-Fix-non-Android-booting-with-ramdisk-and-or-.patch
common/image.c