]> git.ipfire.org Git - people/ms/u-boot.git/commit
dfu: ram: fix number base of RAM entity parameters
authorStephen Warren <swarren@nvidia.com>
Fri, 22 Apr 2016 19:34:16 +0000 (13:34 -0600)
committerMarek Vasut <marex@denx.de>
Mon, 25 Apr 2016 15:56:30 +0000 (17:56 +0200)
commit3517de6d26de7baeddb2c9e9bf145456c35885e1
tree076bfd1b2e0462840cbc2ab449987cdc95f627a4
parente1b0f6fe3d0a0317486fb879e83dc1440cac3029
dfu: ram: fix number base of RAM entity parameters

U-Boot typically interprets unprefixed numbers as base 16, and DFU RAM
entity parsing has historically done so. Reverse the change to default
to base 10, so that values in previously working command-lines aren't
mis-parsed, causing RAM corruption, crashes, hangs, etc.

Fixes: 6aeb877afef0 ("drivers: dfu: ram: fix a crash with dfu ram with invalid dfu_alt_info env")
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Tom Rini <trini@konsulko.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
[Test HW: AM335x BBB]
drivers/dfu/dfu_ram.c