mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
Merge "ASoC: msm: qdsp6v2: DAP: Add check to validate param length"
This commit is contained in:
commit
156ccbb984
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
|
@ -1656,6 +1656,7 @@ static int msm_ds2_dap_param_visualizer_control_get(u32 cmd, void *arg)
|
|||
ret = 0;
|
||||
dolby_data->length = 0;
|
||||
pr_err("%s Incorrect VCNB length", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
params_length = (2*length + DOLBY_VIS_PARAM_HEADER_SIZE) *
|
||||
|
|
Loading…
Reference in a new issue