Re: [PATCH 2/2] soc: qcom: pd-mapper: Fix element length in servreg_loc_pfr_req_ei

From: Dmitry Baryshkov

Date: Thu Jan 29 2026 - 23:35:42 EST


On Thu, Jan 29, 2026 at 08:53:20PM +0530, Mukesh Ojha wrote:
> It looks element length declared in servreg_loc_pfr_req_ei for reason
> not matching servreg_loc_pfr_req's reason field due which we could
> observe decoding error on PD crash.
>
> qmi_decode_string_elem: String len 81 >= Max Len 65
>
> Fix this by matching with servreg_loc_pfr_req's reason field.
>
> Fixes: 1ebcde047c54 ("soc: qcom: add pd-mapper implementation")

Cc: stable@xxxxxxxxxxxxxxx

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


> Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
> ---
> drivers/soc/qcom/pdr_internal.h | 2 +-
> drivers/soc/qcom/qcom_pdr_msg.c | 2 +-
> include/linux/soc/qcom/pdr.h | 1 +
> 3 files changed, 3 insertions(+), 2 deletions(-)
>

--
With best wishes
Dmitry