msm: adsprpc: add warning log for non-ion buffer
Print non-ion buffer details as warning to help in size issues debugging. Change-Id: Ib96af6d202620e06cd9ed15f2698f6eac5c3a444 Signed-off-by: Ramesh Nallagopu <quic_rnallago@quicinc.com>
This commit is contained in:
@@ -2560,6 +2560,10 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
|
||||
err = -EFAULT;
|
||||
goto bail;
|
||||
}
|
||||
if (templen > DEBUG_PRINT_SIZE_LIMIT)
|
||||
ADSPRPC_WARN(
|
||||
"user passed non ion buffer size %zu, mend 0x%llx mstart 0x%llx, sc 0x%x handle 0x%x\n",
|
||||
templen, mend, mstart, sc, ctx->handle);
|
||||
copylen += templen;
|
||||
}
|
||||
totallen = ALIGN(totallen, BALIGN) + copylen;
|
||||
|
Reference in New Issue
Block a user