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

From: Bjorn Andersson
Date: Wed May 07 2014 - 01:32:40 EST


On Tue, May 6, 2014 at 10:16 PM, Bjorn Andersson
<bjorn.andersson@xxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/