Patch "soc: qcom: pdr: Fixup array type of get_domain_list_resp message" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    soc: qcom: pdr: Fixup array type of get_domain_list_resp message

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-qcom-pdr-fixup-array-type-of-get_domain_list_res.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b595f2614c46779fa1994513339aa73b9035b763
Author: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
Date:   Mon Sep 14 20:28:07 2020 +0530

    soc: qcom: pdr: Fixup array type of get_domain_list_resp message
    
    [ Upstream commit 7a366707bb6a93baeb1a9ef46c4b9c875e0132d6 ]
    
    The array type of get_domain_list_resp is incorrectly marked as NO_ARRAY.
    Due to which the following error was observed when using pdr helpers with
    the downstream proprietary pd-mapper. Fix this up by marking it as
    VAR_LEN_ARRAY instead.
    
    Err logs:
    qmi_decode_struct_elem: Fault in decoding: dl(2), db(27), tl(160), i(1), el(1)
    failed to decode incoming message
    PDR: tms/servreg get domain list txn wait failed: -14
    PDR: service lookup for tms/servreg failed: -14
    
    Tested-by: Rishabh Bhatnagar <rishabhb@xxxxxxxxxxxxxx>
    Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers")
    Reported-by: Rishabh Bhatnagar <rishabhb@xxxxxxxxxxxxxx>
    Signed-off-by: Sibi Sankar <sibis@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200914145807.1224-1-sibis@xxxxxxxxxxxxxx
    Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/qcom/pdr_internal.h b/drivers/soc/qcom/pdr_internal.h
index 15b5002e4127b..ab9ae8cdfa54c 100644
--- a/drivers/soc/qcom/pdr_internal.h
+++ b/drivers/soc/qcom/pdr_internal.h
@@ -185,7 +185,7 @@ struct qmi_elem_info servreg_get_domain_list_resp_ei[] = {
 		.data_type      = QMI_STRUCT,
 		.elem_len       = SERVREG_DOMAIN_LIST_LENGTH,
 		.elem_size      = sizeof(struct servreg_location_entry),
-		.array_type	= NO_ARRAY,
+		.array_type	= VAR_LEN_ARRAY,
 		.tlv_type       = 0x12,
 		.offset         = offsetof(struct servreg_get_domain_list_resp,
 					   domain_list),



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux