diff options
author | Doug Anderson <dianders@chromium.org> | 2011-10-05 13:31:14 -0700 |
---|---|---|
committer | Doug Anderson <dianders@chromium.org> | 2011-10-07 08:47:15 -0700 |
commit | 73829d2ccaafe12dca5e324cc348b037a079b73b (patch) | |
tree | a5f96e20a3bd709d55b07a51dcf06aaee76a68b9 /arch/arm/include/asm/arch-tegra3/gpio.h | |
parent | bd3303c4525fc91667fde0b2f64795d3b0d2d35f (diff) |
CHROMIUM: bootm: Avoid 256-byte overflow in fixup_silent_linux()
This makes fixup_silent_linux() use malloc() to allocate its
working space, meaning that our maximum kernel command line
should only be limited by malloc(). Previously it was silently
overflowing the stack.
BUG=chromium-os:21313
TEST=Manual:
1. Built with:
USE="-cros-debug" emerge-${BOARD} \
chromeos-u-boot \
chromeos-bootimage
2. Flashed with:
cros_write_firmware --board=${BOARD} /build/${BOARD}/firmware/image.bin
3. Saw that I could boot.
TEST=Manually copied unittest code (included in next checkin) to a
C file and then ran it. All tests pass. Note that there is no
automated way to run unittests like this in u-boot yet.
Change-Id: I0b5fd0d4a3cd09b7545d676a201a11b4a9b7dada
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8815
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra3/gpio.h')
0 files changed, 0 insertions, 0 deletions