Re: [PATCH v7 1/6] selftests/mm: make file helpers return errors

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <[email protected]>
On Mon, Aug 24, 2026 at 02:17:03PM +0200, David Hildenbrand (Arm) wrote:
> On 8/13/26 20:12, Sarthak Sharma wrote:

> > +	if (buf[0] < '0' || buf[0] > '9')
> > +		return -EINVAL;

> This is to reject any negative or hexadecimal numbers I assume?

That won't reject hexidecimal - 0xNNNN matches the above.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmqMOMkACgkQJNaLcl1U
h9CvGgf+O6xziDN2tC2WVmqshJiIPV2RTp+I6jL7UYGbu0/4SqXrGYtjV/06GpXL
XnqCVPhTbDWZdjCLVIxYvyIokjMuaRzRVVl6xGkwA6ynuBLRzkOv6vG9V1Vpz5mc
ZQ05N0r/DC1kHmSjwfi299fi5eHv6QCin3RDNMxG0NDXztSnw6A9tuKMH+dsZgdw
YHrYneZTcZUzGVopqKJijMvoUwXSi0U1PbVygYjM6wBrk1WhCBIUiR3SNjrb/XiK
XvzUl+tqMHROsxEik7UN7+NuH8jdQyYVXDnkU3LvBfFQmGnnDn2TO3KcxZQQZXJI
LvabEh4JA37rsghLhdN22otZ7sYftA==
=pTvz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.