From: Simon Glass Date: Tue, 12 Jun 2018 06:05:02 +0000 (-0600) Subject: sandbox: swap_case: Increase number of base address regs X-Git-Tag: v2025.01-rc5-pxa1908~4063 X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=fe996ec0663703846d8ce11446c07b6ae0bf9077;p=u-boot.git 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 Reviewed-by: Heinrich Schuchardt --- diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index 56cd0700fa..b777404c09 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) \