[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b3ae8802-b4e0-4542-8fe0-e2d169944ac0@p183>
Date: Wed, 20 Dec 2023 12:54:53 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Qu Wenruo <wqu@...e.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-btrfs@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] lib/strtox: introduce kstrtoull_suffix() helper
> Just as mentioned in the comment of memparse(), the simple_stroull()
> usage can lead to overflow all by itself.
which is the root cause...
I don't like one char suffixes. They are easy to integrate but then the
_real_ suffixes are "MiB", "GiB", etc.
If you care only about memparse(), then using _parse_integer() can be
arranged. I don't see why not.
Powered by blists - more mailing lists