[U-Boot] lib: strto: fix incorrect handling of specified base

Tom Rini trini at konsulko.com
Fri Sep 15 12:30:31 UTC 2017


On Mon, Sep 11, 2017 at 04:53:08PM -0400, Rob Clark wrote:

> The strto functions should honor the specified base (if non-zero) rather
> than permitting a hex or octal string when the user wanted (for example)
> base 10.
> 
> This has been fixed somewhere along the way in the upstream linux kernel
> src tree, at some point after these was copied in to u-boot.  And also
> in a way that duplicates less code.  So port _parse_integer_fixup_radix()
> to u-boot.
> 
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170915/0f54ef15/attachment.sig>


More information about the U-Boot mailing list