linux/drivers/media/common
Sakari Ailus defcdc5d89 media: videobuf2-core: Prevent size alignment wrapping buffer size to 0
PAGE_ALIGN() may wrap the buffer size around to 0. Prevent this by
checking that the aligned value is not smaller than the unaligned one.

Note on backporting to stable: the file used to be under
drivers/media/v4l2-core, it was moved to the current location after 4.14.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-23 10:18:19 -04:00
..
b2c2 media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
saa7146 media: common: fix several typos 2019-03-01 09:44:48 -05:00
siano media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
v4l2-tpg media: v4l2-tpg-core: Add support for 32-bit packed YUV formats (v2) 2019-02-18 14:31:23 -05:00
videobuf2 media: videobuf2-core: Prevent size alignment wrapping buffer size to 0 2019-05-23 10:18:19 -04:00
btcx-risc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cx2341x.c media: cx2341x: replace badly designed macros 2019-03-25 18:02:25 -04:00
cypress_firmware.c media: drivers: improve a size determination 2017-09-23 08:20:57 -04:00
cypress_firmware.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig media: drivers/media/common/videobuf2: rename from videobuf 2018-01-23 08:05:02 -05:00
Makefile media: drivers/media/common/videobuf2: rename from videobuf 2018-01-23 08:05:02 -05:00
tveeprom.c [media] tveeprom: get rid of unused arg on tveeprom_hauppauge_analog() 2017-03-03 07:35:02 -03:00