diff options
author | Yong Zhi <[email protected]> | 2018-01-19 01:27:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2018-01-23 08:08:44 -0500 |
commit | 401f69308fe344b4353fad5233d99c7efa9deef5 (patch) | |
tree | dd957532b69bf1863097e14c945e1a03e1273060 /net/unix/sysctl_net_unix.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 <[email protected]>
Signed-off-by: Cao Bing Bu <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions