]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: pd-mapper: Fix element length in servreg_loc_pfr_req_ei
authorMukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Thu, 29 Jan 2026 15:23:20 +0000 (20:53 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:36:05 +0000 (20:36 -0500)
commit641f6fda143b879da1515f821ee475073678cf2a
tree66e05ddc0c76cb6dfec00b1160b05b93b4240bf0
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
soc: qcom: pd-mapper: Fix element length in servreg_loc_pfr_req_ei

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")
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20260129152320.3658053-2-mukesh.ojha@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/pdr_internal.h
drivers/soc/qcom/qcom_pdr_msg.c
include/linux/soc/qcom/pdr.h