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)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 8 Dec 2015 16:59:47 +0000 (16:59 +0000)
commit06e0c53a445cd2a56011b16bec514f51940999e4
tree6bf6ded23b811bc6ce294aa64cb4c0be9c0baceb
parent96a797b75810d17644e4bb4e53f74dd424f3db69
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