mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
ASoC: msm: qdsp6v2: clear address on error
Set address to NULL on error to ensure a stale address is not used. CRs-Fixed: 2038685 Signed-off-by: Siena Richard <sienar@codeaurora.org> Change-Id: I17e7b7b404625d21721b2466e70fa8be2370b517
This commit is contained in:
parent
9a73e3da51
commit
0a5bf59253
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue