[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176693923203.195831.10871092800980020289.b4-ty@kernel.dk>
Date: Sun, 28 Dec 2025 09:27:12 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] brd: replace simple_strtol with kstrtoul in
ramdisk_size
On Sun, 21 Dec 2025 00:59:23 +0100, Thorsten Blum wrote:
> Replace simple_strtol() with the recommended kstrtoul() for parsing the
> 'ramdisk_size=' boot parameter. Unlike simple_strtol(), which returns a
> long, kstrtoul() converts the string directly to an unsigned long and
> avoids implicit casting.
>
> Check the return value of kstrtoul() and reject invalid values. This
> adds error handling while preserving behavior for existing values, and
> removes use of the deprecated simple_strtol() helper. The current code
> silently sets 'rd_size = 0' if parsing fails, instead of leaving the
> default value (CONFIG_BLK_DEV_RAM_SIZE) unchanged.
>
> [...]
Applied, thanks!
[1/1] brd: replace simple_strtol with kstrtoul in ramdisk_size
commit: 44b8a74a16101bd710f97c46a8f1d3078e0518f5
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists