Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 728e947a authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Vegard Nossum
Browse files

media: dvbdev: Initialize sbuf



[ Upstream commit 17d1316de0d7dc1bdc5d6e3ad4efd30a9bf1a381 ]

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: default avatarRicardo Ribalda <ribalda@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 1925c902159d686372d897c2fa8ee4ea91b62d14)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent bf4ffd90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment