Re: [PATCH] firmware: qcom: pas_tee: handle a NULL resource table
From: Harshal Dev
Date: Wed Oct 14 2026 - 02:43:24 EST
On 06-10-2026 12:11 pm, Jorge Ramirez-Ortiz wrote:
> Stopping a remote processor clears its cached resource table pointer
> but leaves the size set. On restart, qcom_pas_tee_get_rsc_table() copies
> from NULL when the firmware has no resource table:
>
> pc : __pi_memcpy_generic+0x110/0x22c
> lr : qcom_pas_tee_get_rsc_table+0xf0/0x244
>
> Zero the input size when the table is NULL so the copy is skipped.
>
> Fixes: b6f7978da0c4 ("firmware: qcom: Add a PAS TEE service")
> Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@xxxxxxxxxxxxxxxx>
> ---
Tested-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx> on Shikra
Regards,
Harshal