From 6304e0b8c1b40675ff65fb761d716652edccb507 Mon Sep 17 00:00:00 2001 From: Junhwan Park Date: Fri, 14 Apr 2017 14:35:40 +0900 Subject: [PATCH] s5j/i2c: fix g_s5j_i2c_priv the array 'g_s5j_i2c_priv[2]' is accessed at port 3, which is out of bounds. The S5J's I2C has ports 0 to 3. Change-Id: I49166fc8301722a531a758319f15e5123d6a5058 Signed-off-by: Junhwan Park --- os/arch/arm/src/s5j/s5j_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/arch/arm/src/s5j/s5j_i2c.c b/os/arch/arm/src/s5j/s5j_i2c.c index cdbef5e..56814ed 100644 --- a/os/arch/arm/src/s5j/s5j_i2c.c +++ b/os/arch/arm/src/s5j/s5j_i2c.c @@ -96,7 +96,7 @@ /************************************************************************************ * Private Types ************************************************************************************/ -struct s5j_i2c_priv_s *g_s5j_i2c_priv[2] = { NULL }; +struct s5j_i2c_priv_s *g_s5j_i2c_priv[4] = { NULL }; /************************************************************************************ * Private Data -- 2.7.4