From: Stephen Boyd <sboyd@kernel.org>
To: Ard Biesheuvel <ardb@kernel.org>,
Dmitry Osipenko <digetx@gmail.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Linus Walleij <linus.walleij@linaro.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Nicolas Pitre <nico@fluxnic.net>,
Russell King <linux@armlinux.org.uk>
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"Eric Miao" <eric.miao@nvidia.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Lukasz Stelmach" <l.stelmach@samsung.com>,
"Chris Brandt" <chris.brandt@renesas.com>,
linux-arm-kernel@lists.infradead.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
"Geert Uytterhoeven" <geert+renesas@glider.be>
Subject: Re: [PATCH v11] ARM: uncompress: Validate start of physical memory against passed DTB
Date: Sat, 12 Dec 2020 21:21:34 -0800 [thread overview]
Message-ID: <160783689435.1580929.1038454293190061446@swboyd.mtv.corp.google.com> (raw)
In-Reply-To: <20201210093201.2419737-1-geert+renesas@glider.be>
Quoting Geert Uytterhoeven (2020-12-10 01:32:01)
> diff --git a/arch/arm/boot/compressed/fdt_check_mem_start.c b/arch/arm/boot/compressed/fdt_check_mem_start.c
> new file mode 100644
> index 0000000000000000..e58c3a79c8a31ec4
> --- /dev/null
> +++ b/arch/arm/boot/compressed/fdt_check_mem_start.c
> @@ -0,0 +1,131 @@
[...]
> +
> +static uint64_t get_val(const fdt32_t *cells, uint32_t ncells)
> +{
> + uint64_t r = 0;
This assignment is unnecessary?
> +
> + r = fdt32_ld(cells);
> + if (ncells > 1)
> + r = (r << 32) | fdt32_ld(cells + 1);
> +
> + return r;
prev parent reply other threads:[~2020-12-13 5:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 9:32 [PATCH v11] ARM: uncompress: Validate start of physical memory against passed DTB Geert Uytterhoeven
2020-12-13 5:21 ` Stephen Boyd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160783689435.1580929.1038454293190061446@swboyd.mtv.corp.google.com \
--to=sboyd@kernel.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=chris.brandt@renesas.com \
--cc=digetx@gmail.com \
--cc=eric.miao@nvidia.com \
--cc=geert+renesas@glider.be \
--cc=l.stelmach@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=m.szyprowski@samsung.com \
--cc=nico@fluxnic.net \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).