]> git.sur5r.net Git - u-boot/commitdiff
sandbox: swap_case: Increase number of base address regs
authorSimon Glass <sjg@chromium.org>
Tue, 12 Jun 2018 06:05:02 +0000 (00:05 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jun 2018 11:31:44 +0000 (07:31 -0400)
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>
drivers/misc/swap_case.c

index 56cd0700fa45a1d044ddf6aa6dff2dee9960a02f..b777404c0977d5e9be61bbe91ed8597f898eca74 100644 (file)
@@ -21,7 +21,7 @@
  */
 struct swap_case_platdata {
        u16 command;
-       u32 bar[2];
+       u32 bar[6];
 };
 
 #define offset_to_barnum(offset)       \