Commit c6150aaf2f2745141a7c2ceded58d7efbfeace7d

Authored by Noam Camus
Committed by Tom Rini
1 parent 8086988fe8

image-fdt: boot_get_fdt() return value when no DTB exists

I believe that when no DTB is around we should return 1.
This why I fixed such scenarious to not return zero anymore.
Else kernel might get NULL pointer to DTB which doesn't exists.

Signed-off-by: Noam Camus <noamc@ezchip.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -413,11 +413,11 @@
413 413 }
414 414 } else {
415 415 debug("## No Flattened Device Tree\n");
416   - return 0;
  416 + goto error;
417 417 }
418 418 } else {
419 419 debug("## No Flattened Device Tree\n");
420   - return 0;
  420 + goto error;
421 421 }
422 422  
423 423 *of_flat_tree = fdt_blob;