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

Commit c6c9c007 authored by Kenneth Westfield's avatar Kenneth Westfield
Browse files

ASoC: msm: qdsp6v2: Check for null data pointer



Add check for null data pointer in
aprv2_core_fn_q() and log error message if
true.

CRs-Fixed: 575228
Change-Id: I0d02913ced422ff3f396375c70ad6929908ee58d
Signed-off-by: default avatarKenneth Westfield <kwestfie@codeaurora.org>
parent 9c6389a6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@ static int32_t aprv2_core_fn_q(struct apr_client_data *data, void *priv)
	uint32_t nseg;
	int i, j;

	if (data == NULL) {
		pr_err("%s: data argument is null", __func__);
		return -EINVAL;
	}

	pr_debug("core msg: payload len = %u, apr resp opcode = 0x%X\n",
		data->payload_size, data->opcode);