[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aCXOUx-a809LVxgE@gmail.com>
Date: Thu, 15 May 2025 13:21:55 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Andy Shevchenko <andy@...nel.org>
Cc: linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...nel.org>,
Borislav Petkov <bp@...en8.de>, Juergen Gross <jgross@...e.com>,
"H . Peter Anvin" <hpa@...or.com>,
Kees Cook <keescook@...omium.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Mike Rapoport <rppt@...nel.org>,
Paul Menzel <pmenzel@...gen.mpg.de>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
David Woodhouse <dwmw@...zon.co.uk>
Subject: Re: [PATCH 14/29] x86/boot/e820: Clean up __e820__range_add() a bit
* Andy Shevchenko <andy@...nel.org> wrote:
> On Mon, Apr 21, 2025 at 08:51:54PM +0200, Ingo Molnar wrote:
> > - Use 'idx' index variable instead of a weird 'x'
> > - Make the error message E820-specific
> > - Group the code a bit better
>
> ...
>
> > - if (x >= ARRAY_SIZE(table->entries)) {
> > - pr_err("too many entries; ignoring [mem %#010llx-%#010llx]\n",
> > - start, start + size - 1);
> > + if (idx >= ARRAY_SIZE(table->entries)) {
> > + pr_err("too many E820 table entries; ignoring [mem %#010llx-%#010llx]\n",
> > + start, start + size-1);
>
> size - 1 ?
Not in this case, see:
https://lore.kernel.org/r/aCW-qKOYJWRLYgpx@gmail.com
Thanks,
Ingo
Powered by blists - more mailing lists