lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJAp7OgiG-F-kaSXBC1iYG2rESH=Ta8k=pODFCF7_Yb0ANpdZA@mail.gmail.com>
Date:	Tue, 6 May 2014 22:32:32 -0700
From:	Bjorn Andersson <bjorn@...o.se>
To:	Bjorn Andersson <bjorn.andersson@...ymobile.com>
Cc:	Russell King <linux@....linux.org.uk>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ