Merge "ASoC: msm: qdsp6v2: DAP: Add check to validate param length"

This commit is contained in:
Linux Build Service Account 2017-01-16 04:32:43 -08:00 committed by Gerrit - the friendly Code Review server
commit 156ccbb984

View file

@ -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) *