Re: [PATCH RESEND] x86/mtrr: Replace simple_strtoul with kstrtoul in parse_mtrr_spare_reg
From: Borislav Petkov
Date: Sat Feb 28 2026 - 10:02:51 EST
On Tue, Jan 27, 2026 at 10:58:23PM +0100, Thorsten Blum wrote:
> Replace simple_strtoul() with the recommended kstrtoul() for parsing the
> 'mtrr_spare_reg_nr' boot parameter.
>
> Check the return value of kstrtoul() and reject invalid values.
Where?
> This adds error handling while preserving behavior for existing values, and
s/This adds/Add/
Describe your changes in imperative mood.
Also, pls read section "2) Describe your changes" in
Documentation/process/submitting-patches.rst for more details.
Also, see section "Changelog" in
Documentation/process/maintainer-tip.rst
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette