Merge "ASoC: msm: qdsp6v2: clear address on error"

This commit is contained in:
Linux Build Service Account 2017-05-11 19:58:39 -07:00 committed by Gerrit - the friendly Code Review server
commit 341fff9df3
1 changed files with 2 additions and 0 deletions

View File

@ -605,7 +605,9 @@ done:
return cal_block;
err:
kfree(cal_block->cal_info);
cal_block->cal_info = NULL;
kfree(cal_block->client_info);
cal_block->client_info = NULL;
kfree(cal_block);
cal_block = NULL;
return cal_block;