summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMukesh Ojha <mukesh.ojha@oss.qualcomm.com>2026-01-29 18:23:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-22 14:30:34 +0300
commitcba84132c2ac7c08b215ce4962bc6f522c08a88c (patch)
tree6c95dc613d7820d28157c4f90b20c5e03f67e1f7 /include
parent686ccd598a8cf325a1495877f465d0b21e8bd7e0 (diff)
downloadlinux-cba84132c2ac7c08b215ce4962bc6f522c08a88c.tar.xz
soc: qcom: pd-mapper: Fix element length in servreg_loc_pfr_req_ei
[ Upstream commit 641f6fda143b879da1515f821ee475073678cf2a ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/soc/qcom/pdr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/pdr.h b/include/linux/soc/qcom/pdr.h
index 83a8ea612e69..2b7691e47c2a 100644
--- a/include/linux/soc/qcom/pdr.h
+++ b/include/linux/soc/qcom/pdr.h
@@ -5,6 +5,7 @@
#include <linux/soc/qcom/qmi.h>
#define SERVREG_NAME_LENGTH 64
+#define SERVREG_PFR_LENGTH 256
struct pdr_service;
struct pdr_handle;