Merge "msm: camera: fix off-by-one overflow in msm_isp_get_bufq"

This commit is contained in:
Linux Build Service Account 2017-09-13 10:58:08 -07:00 committed by Gerrit - the friendly Code Review server
commit e3d53f3d2e

View file

@ -86,7 +86,7 @@ struct msm_isp_bufq *msm_isp_get_bufq(
/* bufq_handle cannot be 0 */
if ((bufq_handle == 0) ||
bufq_index >= BUF_MGR_NUM_BUF_Q ||
(bufq_index > buf_mgr->num_buf_q))
(bufq_index >= buf_mgr->num_buf_q))
return NULL;
bufq = &buf_mgr->bufq[bufq_index];