aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPi-Hsun Shih <[email protected]>2019-03-06 17:09:02 +0800
committerMark Brown <[email protected]>2019-03-19 12:51:13 +0000
commited1666f6867059e1ed4e2e565a1c87c5580f1b38 (patch)
treea01b5bb8ebb23c2aac1190888986a3b74e96b859 /tools/perf/scripts/python/export-to-postgresql.py
parent4e08d50d1fb6144df4b0b5c75a17edd344bf3d1b (diff)
ASoC: mediatek: Fix UBSAN warning.
In sound/soc/mediatek/common/mtk-afe-fe-dai.c, when xxx_reg is -1, it's a no-op to call mtk_regmap_update_bits, but since both xxx_reg and xxx_shift are set to -1, the (1 << xxx_shift) in the argument would trigger a UBSAN warning. Fix the warning by setting those xxx_shift to 0 instead. Note that since the code explicitly checks .mono_shift >= 0 and .fs_shift >= 0 before using them in '<<' operator, those two members are not set to 0. Signed-off-by: Pi-Hsun Shih <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions