aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBanajit Goswami <[email protected]>2018-01-01 04:40:14 +0000
committerMark Brown <[email protected]>2018-01-03 12:32:04 +0000
commitb9f902b7fd800214b5598a636ceb74bfe2db63be (patch)
treedb5c986c5f8502e7256d35a935c268934906b760 /net/unix/af_unix.c
parentASoC: soc-core: care Codec <-> Codec case by non_legacy_dai_naming (diff)
downloadkernel-b9f902b7fd800214b5598a636ceb74bfe2db63be.tar.gz
kernel-b9f902b7fd800214b5598a636ceb74bfe2db63be.zip
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. Signed-off-by: Banajit Goswami <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions