summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeiyin Jiang <wjiang@codeaurora.org>2015-04-07 11:36:35 +0800
committermyfluxi <linflux@arcor.de>2015-04-24 18:58:02 +0200
commit24c0fe3a452b107765867619276bbddbc3a5b5dd (patch)
tree87b680b3673fbb462ec8ed3b7f8831c38a8114c2
parentef33462dda59536cfae67f1e3242d131699a8b21 (diff)
downloadandroid_hardware_qcom_audio-stable/cm-12.1-caf-8974-YOG3C.tar.gz
android_hardware_qcom_audio-stable/cm-12.1-caf-8974-YOG3C.tar.bz2
android_hardware_qcom_audio-stable/cm-12.1-caf-8974-YOG3C.zip
post_proc: remove unnecessary command size checkstable/cm-12.1-caf-8974-YOG3C
Up bound check for command size of EFFECT_CMD_SET_PARAM is not applicable for DSP effect bundle. Remove the check to avoid parameter not taking effect. Change-Id: I7e8f73377699f11bdc1f62a05f6bea03c9c24151 CRs-Fixed: 816053
-rw-r--r--post_proc/bundle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/post_proc/bundle.c b/post_proc/bundle.c
index 556a2d73..96c80d0b 100644
--- a/post_proc/bundle.c
+++ b/post_proc/bundle.c
@@ -660,8 +660,6 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize,
} break;
case EFFECT_CMD_SET_PARAM: {
if (pCmdData == NULL ||
- cmdSize > (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
- sizeof(uint32_t)) ||
cmdSize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
sizeof(uint16_t)) ||
pReplyData == NULL || *replySize != sizeof(int32_t)) {