From: Jens Axboe <axboe@kernel.dk>
To: Thorsten Blum <thorsten.blum@linux.dev>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] brd: replace simple_strtol with kstrtoul in ramdisk_size
Date: Sun, 28 Dec 2025 09:27:12 -0700 [thread overview]
Message-ID: <176693923203.195831.10871092800980020289.b4-ty@kernel.dk> (raw)
In-Reply-To: <20251220235924.126384-1-thorsten.blum@linux.dev>
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
prev parent reply other threads:[~2025-12-28 16:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-20 23:59 Thorsten Blum
2025-12-28 16:27 ` Jens Axboe [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=176693923203.195831.10871092800980020289.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thorsten.blum@linux.dev \
/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
all inboxes | Powered by JetHome®