summaryrefslogtreecommitdiff
path: root/crypto/api.c
diff options
context:
space:
mode:
authorBanajit Goswami <bgoswami@codeaurora.org>2017-09-22 11:52:35 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-30 22:04:08 -0700
commit7a4ab19b3177b0f77cb330f28a4a0bf485ccde17 (patch)
treed3f0f412eeda583edf1724ae7360627c36828b6b /crypto/api.c
parent0773fb50d426e9b02b812f9941726741273a279f (diff)
ASoC: change mask in snd_soc_get/put_volsw_sx to unsigned int
If the result of (min + max) is negative in functions snd_soc_get_volsw_sx() or snd_soc_put_volsw_sx(), there will be an overflow for the variable 'mask'. UBSAN: Undefined behaviour in sound/soc/soc-ops.c:382:6 signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' Fix this by updating the variable type of 'mask' to unsigned int. Change-Id: Ia34f397fad5b93c0e2ffacae60e051ad20c20bdf Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions