diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-12 00:05:02 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-19 07:31:44 -0400 |
commit | fe996ec0663703846d8ce11446c07b6ae0bf9077 (patch) | |
tree | 0e2729586fa1c6536b84fd8439a196a7057c1014 /drivers/misc/swap_case.c | |
parent | fb95283931011aef78d885f2799ad9d7367f4e48 (diff) | |
download | u-boot-fe996ec0663703846d8ce11446c07b6ae0bf9077.zip u-boot-fe996ec0663703846d8ce11446c07b6ae0bf9077.tar.gz u-boot-fe996ec0663703846d8ce11446c07b6ae0bf9077.tar.bz2 |
sandbox: swap_case: Increase number of base address regs
At present the code overruns the bar[] array. Fix this.
At the same time, drop the leading / from the "/spl" path so that we can
run U-Boot SPL with:
spl/u-boot-spl
rather than requiring:
/path/to/spl/u-boot-spl
Reported-by: Coverity (CID: 131199)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/misc/swap_case.c')
-rw-r--r-- | drivers/misc/swap_case.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index 56cd070..b777404 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -21,7 +21,7 @@ */ struct swap_case_platdata { u16 command; - u32 bar[2]; + u32 bar[6]; }; #define offset_to_barnum(offset) \ |