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)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 05:43:14 +0000 (07:43 +0200)
commit6c42227c3467549ddc65efe99c869021d2f4a570
treec8d89e92c772065e38d97022e98215213df05954
parent137641287eb40260783a4413847a0aef06023a6c
cec-api: prevent leaking memory through hole in structure

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>
drivers/media/cec/core/cec-api.c