summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-25 17:09:05 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-25 18:02:34 -0400
commitded716267196862809e5926072adc962a611a1e3 (patch)
treecb593f0a48af126cf67ba2b8ea40c12749ad296e /drivers/media/dvb-core
parentbf78f23acf023d5bc9d31bab2918a3092dc821f0 (diff)
downloadblackbird-op-linux-ded716267196862809e5926072adc962a611a1e3.tar.gz
blackbird-op-linux-ded716267196862809e5926072adc962a611a1e3.zip
media: hfi_parser: don't trick gcc with a wrong expected size
Smatch warns about small size on two structs: drivers/media/platform/qcom/venus/hfi_parser.c:103 parse_profile_level() error: memcpy() 'proflevel' too small (8 vs 128) drivers/media/platform/qcom/venus/hfi_parser.c: drivers/media/platform/qcom/venus/hfi_parser.c:129 parse_caps() error: memcpy() 'cap' too small (16 vs 512) The reason is that the hfi_parser actually expects: - multiple data entries on hfi_capabilities - multiple profile_level on hfi_profile_level_supported However, the structs trick gcc, making it to believe that there's just one value for each. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-core')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud