Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b50e6564 authored by Siena Richard's avatar Siena Richard Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSiena Richard <sienar@codeaurora.org>
Change-Id: I17e7b7b404625d21721b2466e70fa8be2370b517
parent 822fa236
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -637,7 +637,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;