Merge "ASoC: msm: qdsp6v2: Fix information leak in kernel"

This commit is contained in:
Linux Build Service Account 2017-10-21 02:30:39 -07:00 committed by Gerrit - the friendly Code Review server
commit 2f33324f5d

View file

@ -16215,7 +16215,8 @@ int msm_routing_set_downmix_control_data(int be_id, int session_id,
uint16_t ii;
uint16_t *dst_gain_ptr = NULL;
if (be_id >= MSM_BACKEND_DAI_MAX) {
if (be_id < MSM_BACKEND_DAI_PRI_I2S_RX ||
be_id >= MSM_BACKEND_DAI_MAX) {
rc = -EINVAL;
return rc;
}