linux/drivers/media/pci
Yong Zhi 401f69308f 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: c7cbef1fdb ("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>
2018-01-23 08:08:44 -05:00
..
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
bt8xx media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cobalt media: cobalt: select CONFIG_SND_PCM 2018-01-23 08:05:01 -05:00
cx18 media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx88 media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00
cx23885 media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx25821 media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00
ddbridge media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
dm1105 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
dt3155 media: pci: make video_device const 2017-08-27 08:44:58 -04:00
intel media: intel-ipu3: cio2: fixup off-by-one bug in cio2_vb2_buf_init 2018-01-23 08:08:44 -05:00
ivtv media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
mantis media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
meye media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
netup_unidvb media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
ngene media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pluto2 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
pt1 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
pt3 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
saa7134 media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
saa7146 media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
saa7164 media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00
smipcie media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
solo6x10 media: solo6x10: use ktime_get_ts64() for time sync 2017-12-08 11:21:29 -05:00
sta2x11 media: sta2x11: document missing function parameters 2017-11-30 04:18:55 -05:00
ttpci media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
tw68 media: tw68: fix kernel-doc markups 2017-11-30 04:18:56 -05:00
tw686x media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
tw5864 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
zoran media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
Kconfig media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00
Makefile media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00