Re: [U-Boot] [PATCH 8/8] sandbox: swap_case: Increase number of base address regs

2018-06-09 Thread Heinrich Schuchardt
On 06/09/2018 08:22 PM, Simon Glass wrote:
> At present the code overruns the bar[] array. Fix this.
> 
> Reported-by: Coverity (CID: 131199)
> 
> Signed-off-by: Simon Glass 

Reviewed-by: Heinrich Schuchardt 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 8/8] sandbox: swap_case: Increase number of base address regs

2018-06-09 Thread Simon Glass
At present the code overruns the bar[] array. Fix this.

Reported-by: Coverity (CID: 131199)

Signed-off-by: Simon Glass 
---

 drivers/misc/swap_case.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)   \
-- 
2.18.0.rc1.242.g61856ae69a-goog

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot