linux/drivers/media
Ricardo Ribalda 06fa2d9445 media: dvbdev: Initialize sbuf
[ Upstream commit 17d1316de0 ]

Because the size passed to copy_from_user() cannot be known beforehand,
it needs to be checked during runtime with check_object_size. That makes
gcc believe that the content of sbuf can be used before init.

Fix:
./include/linux/thread_info.h:215:17: warning: ‘sbuf’ may be used uninitialized [-Wmaybe-uninitialized]

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-07-05 09:33:52 +02:00
..
cec media: cec: core: avoid confusing "transmit timed out" message 2024-06-12 11:12:43 +02:00
common media: videobuf2: request more buffers for vb2_read 2024-04-27 17:11:30 +02:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:33:52 +02:00
dvb-frontends media: mxl5xx: Move xpt structures off stack 2024-06-16 13:47:35 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: ov2680: Do not fail if data-lanes property is absent 2024-06-12 11:12:38 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:47:35 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: intel/ipu6: Fix build with !ACPI 2024-06-27 13:49:03 +02:00
platform media: mtk-vcodec: potential null pointer deference in SCP 2024-06-27 13:49:03 +02:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-12 11:12:01 +02:00
rc pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() 2024-06-12 11:12:24 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: visl: Hook the (TRY_)DECODER_CMD stateless ioctls 2024-01-25 15:35:32 -08:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-03 15:28:17 +02:00
usb media: flexcop-usb: fix sanity check of bNumEndpoints 2024-06-12 11:12:42 +02:00
v4l2-core media: v4l: async: Fix notifier list entry init 2024-06-16 13:47:36 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00