diff options
author | Yong Zhi <yong.zhi@intel.com> | 2018-01-19 01:27:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-01-23 08:08:44 -0500 |
commit | 401f69308fe344b4353fad5233d99c7efa9deef5 (patch) | |
tree | dd957532b69bf1863097e14c945e1a03e1273060 /drivers/media/i2c/ov7670.c | |
parent | 5eb8c768f49361dfd72ac55c82051695b7ed5ee3 (diff) |
media: intel-ipu3: cio2: fixup off-by-one bug in cio2_vb2_buf_init
With "pages" initialized to vb length + 1 pages, the condition
check if(!pages--) will break at one more page than intended,
this can result in out-of-bound access to b->lop[i][j] when setting
the last dummy page.
Fixes: c7cbef1fdb54 ("media: intel-ipu3: cio2: fix a crash with out-of-bounds access")
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Signed-off-by: Cao Bing Bu <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ov7670.c')
0 files changed, 0 insertions, 0 deletions