linux/drivers/media
Ricardo Ribalda dc307b9eb6 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>
2024-07-05 09:08:28 +02:00
..
cec media: cec: cec-api: add locking in cec_release() 2024-06-16 13:28:44 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:22:19 -04:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:08:28 +02:00
dvb-frontends media: mxl5xx: Move xpt structures off stack 2024-06-16 13:28:50 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 13:59:45 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:22:19 -04:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:28:50 +02:00
mmc
pci media: ngene: Add dvb_ca_en50221_init return value check 2024-06-16 13:28:39 +02:00
platform media: rockchip: rga: fix swizzling for RGB formats 2024-02-23 08:25:00 +01:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-16 13:28:39 +02:00
rc media: sharp: fix sharp encoding 2023-11-28 16:50:21 +00:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-17 09:48:35 +01:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-13 12:51:22 +02:00
usb media: stk1160: fix bounds checking in stk1160_copy_video() 2024-06-16 13:28:44 +02:00
v4l2-core media: v4l2-core: hold videodev_lock until dev reg, finishes 2024-06-16 13:28:50 +02:00
Kconfig media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
Makefile