linux/drivers/media
Ming Qian a9f7224c67 media: amphion: fix some issues to improve robust
fix some issues reported by Dan,
1. fix some signedness bug
2. don't use u32 as function return value
3. prevent a divide by zero bug
4. Just return zero on success, don't return a known parameter
5. check the validity of some variables
6. reset buffer state when return buffers
7. make sure the ALIGN won't wrap to zero

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-03-18 07:32:10 +01:00
..
cec media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
common media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
dvb-core media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
dvb-frontends media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: m5mols/m5mols.h: document new reset field 2022-03-18 07:27:56 +01:00
mc media: media-entity: Simplify media_pipeline_start() 2022-03-04 00:27:06 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
platform media: amphion: fix some issues to improve robust 2022-03-18 07:32:10 +01:00
radio media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
rc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
spi media: spi: Kconfig: Place SPI drivers on a single menu 2022-03-18 05:58:35 +01:00
test-drivers media: vidtv: use vfree() for memory allocated with vzalloc() 2022-03-18 07:28:17 +01:00
tuners media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
usb media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
v4l2-core media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00