ASoC: msm: audio-effects: misc fixes in h/w effects (update)

Change INT_MAX to UNIT_MAX.

Bug: 28470967
Change-Id: I8737632fe8f05b73dfa29931e2688c299b8fc22b
CRs-Fixed: 1006609
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
Signed-off-by: vivek mehta <mvivek@codeaurora.org>
This commit is contained in:
Min Chong 2016-05-25 10:30:32 -07:00 committed by syphyr
parent 1b377a2e0a
commit 75b8cbf0c3
1 changed files with 1 additions and 1 deletions

View File

@ -1246,7 +1246,7 @@ int q6asm_audio_client_buf_alloc_contiguous(unsigned int dir,
ac->port[dir].buf = buf;
/* check for integer overflow */
if ((bufcnt > 0) && ((INT_MAX / bufcnt) < bufsz)) {
if ((bufcnt > 0) && ((UINT_MAX / bufcnt) < bufsz)) {
pr_err("%s: integer overflow\n", __func__);
mutex_unlock(&ac->cmd_lock);
goto fail;