Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37f206cc authored by Soundrapandian Jeyaprakash's avatar Soundrapandian Jeyaprakash
Browse files

msm: camera: fix the slab-out-of-bounds in the camera driver



The arrays are accessed beyond the allocated size. fixed the
loop condition to iterate within the boundary.

CRs-Fixed: 2075382

Change-Id: I2cccf942e45f67de37565db71a0f37af433f3fbb
Signed-off-by: default avatarSoundrapandian Jeyaprakash <jsoundra@codeaurora.org>
parent cdd957e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ static int cam_soc_util_get_gpio_info(struct cam_hw_soc_info *soc_info)
		goto free_gpio_array;
	}

	for (i = 0; i <= gpio_array_size; i++)
	for (i = 0; i < gpio_array_size; i++)
		gconf->cam_gpio_common_tbl[i].gpio = gpio_array[i];

	gconf->cam_gpio_common_tbl_size = gpio_array_size;