Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85b7eb8a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: soc-core: Fix integer overflow"

parents 8d3d8eb2 5ba28dfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2740,7 +2740,7 @@ int snd_soc_get_volsw_sx(struct snd_kcontrol *kcontrol,
	unsigned int rshift = mc->rshift;
	int max = mc->max;
	int min = mc->min;
	int mask = (1 << (fls(min + max) - 1)) - 1;
	unsigned int mask = (unsigned int)(1 << (fls(min + max) - 1)) - 1;
	unsigned int val;
	int ret;