mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Revert "ANDROID: ASoC: compress: fix unsigned integer overflow check"
Revert submission 144587-1572027951673-b7d38b4 Reason for revert: See b/142489397 Reverted Changes: Ia6d475540:ANDROID: ASoC: compress: fix unsigned integer over... If77f8b37b:ANDROID: ALSA: jack: Update supported jack switch ... Change-Id: I514458a88b3b96bc2da6d1558b41fd3ccf0aafbd Signed-off-by: Todd Kjos <tkjos@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
22082e3e54
commit
ea0bb61ded
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ static int snd_compress_check_input(struct snd_compr_params *params)
|
|||
{
|
||||
/* first let's check the buffer parameter's */
|
||||
if (params->buffer.fragment_size == 0 ||
|
||||
params->buffer.fragments > U32_MAX / params->buffer.fragment_size ||
|
||||
params->buffer.fragments > INT_MAX / params->buffer.fragment_size ||
|
||||
params->buffer.fragments == 0)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue