]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cec-api: prevent leaking memory through hole in structure
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 26 Jun 2020 10:44:26 +0000 (12:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:22:26 +0000 (11:22 +0200)
commite6a62b5c4f7a05afec7ea4cfb040fb8512376259
treee4d8d7170e3075d1ec330442b538b63719f1080f
parentaa8ef5d342ccd267376c5594b4a6580daa75488e
cec-api: prevent leaking memory through hole in structure

[ Upstream commit 6c42227c3467549ddc65efe99c869021d2f4a570 ]

Fix this smatch warning:

drivers/media/cec/core/cec-api.c:156 cec_adap_g_log_addrs() warn: check that 'log_addrs' doesn't leak information (struct has a hole after
'features')

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/cec-api.c