diff options
author | Taylor Hutt <thutt@chromium.org> | 2012-11-22 09:13:00 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2012-11-27 17:26:49 -0600 |
commit | ed80c931ba7781e6605b9bdaa2a0d58ef365fe71 (patch) | |
tree | 7a53d7cc2d493b2e7bad57a88b764892d64e9eb7 /MAKEALL | |
parent | 1981539914b3626efe4a97bde19ec5fe548b50cf (diff) | |
download | u-boot-imx-ed80c931ba7781e6605b9bdaa2a0d58ef365fe71.zip u-boot-imx-ed80c931ba7781e6605b9bdaa2a0d58ef365fe71.tar.gz u-boot-imx-ed80c931ba7781e6605b9bdaa2a0d58ef365fe71.tar.bz2 |
mmc: Fix incorrect handling of 'read' & 'write' commands
If a malformed 'read' or 'write' command is issued, the Sandbox U-Boot
can crash because the command-handling code does no error checking on
the number of provided arguments.
This change makes the mmc 'erase', 'read' and 'write' commands only
function if the proper number of arguments are supplied.
Also puts the else assignment at the beginning fo the if() statement
to shortens the generated code. This removes an unnecessary jump from
the generated code.
Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions