linux-stable/drivers/media
Benjamin Gaignard e03bcb2898 media: amphion: Use vb2_get_buffer() instead of directly access to buffers array
Use vb2_get_buffer() instead of direct access to the vb2_queue bufs array.
This allows us to change the type of the bufs in the future.
After each call to vb2_get_buffer() we need to be sure that we get
a valid pointer so check the return value of all of them.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
CC: Ming Qian <ming.qian@nxp.com>
CC: Zhou Peng <eagle.zhou@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-11-23 11:58:01 +01:00
..
cec media updates for v6.7-rc1 2023-11-06 15:06:06 -08:00
common media: videobuf2: Use vb2_get_num_buffers() helper 2023-11-23 11:57:04 +01:00
dvb-core media: videobuf2: Use vb2_buffer instead of index 2023-11-23 11:52:04 +01:00
dvb-frontends media: dvb-frontends: drop check because i2c_unregister_device() is NULL safe 2023-10-07 10:55:46 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ccs: Ensure control handlers have been set up after probe 2023-11-22 10:56:34 +01:00
mc media: mc: Check pad flag validity 2023-10-07 10:55:48 +02:00
mmc
pci media: ivsc: csi: Check number of lanes on source, too 2023-11-22 10:56:34 +01:00
platform media: amphion: Use vb2_get_buffer() instead of directly access to buffers array 2023-11-23 11:58:01 +01:00
radio media: radio-si476x: don't fill in bus_info 2023-09-27 10:47:23 +02:00
rc media: meson-ir-tx: Drop usage of platform_driver_probe() 2023-11-16 13:56:48 +01:00
spi
test-drivers media: vidtv: mux: Add check and kfree for kstrdup 2023-10-07 10:55:45 +02:00
tuners media: dvb: symbol fixup for dvb_attach() 2023-09-09 08:15:11 +01:00
usb media: cx231xx: Use EP5_BUF_SIZE macro 2023-10-13 11:33:22 +02:00
v4l2-core media: v4l2: Allow M2M job queuing w/o streaming CAP queue 2023-11-16 13:25:52 +01:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile