[PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM

Bjorn Andersson bjorn at kryo.se
Tue May 6 22:32:32 PDT 2014


On Tue, May 6, 2014 at 10:16 PM, Bjorn Andersson
<bjorn.andersson at sonymobile.com> wrote:
[...]
> +static int fdt_overrides_atag_mem(void *fdt)
> +{
> +       const char *memory;
> +       int len = 0;
> +
> +       memory = getprop(fdt, "/memory", "reg", &len);
> +       if (memory) {
> +               while (len--) {
> +                       if (*memory != '\0')

Sorry, this is of course supposed to be:
                       if (*memory++ != '\0')

> +                               return 1;
> +               }
> +       }
> +
> +       return 0;
> +}

Regards,
Bjorn



More information about the linux-arm-kernel mailing list