[U-Boot] common: Fix cpu nr type which is always unsigned type
Tom Rini
trini at konsulko.com
Tue Jun 19 18:43:05 UTC 2018
On Wed, Jun 13, 2018 at 08:56:31AM +0200, Michal Simek wrote:
> cpu_cmd() is reading cpu number via simple_strtoul() which is always
> unsigned type.
> Platform code implementations are not expecting that nr can be negative
> and there is not checking in the code for that too.
>
> This patch is using u32 type for cpu number to make sure that platform
> code get proper value range.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/371e9486/attachment.sig>
More information about the U-Boot
mailing list