Searched hist:"48 d1b0a57c71d0dfff7fd16865dcf7ef93a4d2de" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/lib/ |
| H A D | strto.c | 48d1b0a57c71d0dfff7fd16865dcf7ef93a4d2de Mon Sep 11 20:53:08 UTC 2017 Rob Clark <robdclark@gmail.com> UPSTREAM: lib: strto: fix incorrect handling of specified base
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.
Change-Id: I4e2383c6d8ac4666e7e4e40b15f7577522bc9700 Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 2e794614838292499910060509d3c4a7aaed986a)
|