aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/mem-phys-addr-record
diff options
context:
space:
mode:
authorMarco Felsch <[email protected]>2022-12-16 11:35:45 +0100
committerMauro Carvalho Chehab <[email protected]>2023-02-03 14:54:56 +0100
commit5ad2e46030ad97de7fdbdaf63bb1af45c7caf3dd (patch)
treef67ffe0cb20fd7344025ecdf78c08647535c5058 /tools/perf/scripts/python/bin/mem-phys-addr-record
parent9d33802c8bcf96c4099ffea4f392afa52897e556 (diff)
media: i2c: tc358746: fix possible endianness issue
Using the u64 v4l2_dbg_register.val directly can lead to unexpected results depending on machine endianness. Fix this by using a local variable which is assigned afterwards. Since tc358746_read() will init the val variable to 0 we can assing it without checking the return value first. Addresses-Coverity-ID: 1527256 ("Integer handling issues") Reported-by: coverity-bot <[email protected]> Fixes: 80a21da36051 ("media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver") Signed-off-by: Marco Felsch <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/mem-phys-addr-record')
0 files changed, 0 insertions, 0 deletions