Merge "msm: camera: isp: Add bound check for an array"
This commit is contained in:
commit
37bca2d337
1 changed files with 6 additions and 0 deletions
|
@ -2480,6 +2480,12 @@ int msm_isp_ab_ib_update_lpm_mode(struct vfe_device *vfe_dev, void *arg)
|
||||||
rc = -1;
|
rc = -1;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
if (ab_ib_vote->num_src >= VFE_AXI_SRC_MAX) {
|
||||||
|
pr_err("%s: ab_ib_vote num_src is exceeding limit\n",
|
||||||
|
__func__);
|
||||||
|
rc = -1;
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
if (ab_ib_vote->lpm_mode) {
|
if (ab_ib_vote->lpm_mode) {
|
||||||
for (i = 0; i < ab_ib_vote->num_src; i++) {
|
for (i = 0; i < ab_ib_vote->num_src; i++) {
|
||||||
stream_info =
|
stream_info =
|
||||||
|
|
Loading…
Add table
Reference in a new issue