diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-10-29 15:09:54 -0700 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-10-31 01:51:20 +0000 |
commit | d13a5c8c4c3dbe299659bcff805f79a2c83e2bbc (patch) | |
tree | 19fd5ba13674a2641ca748f9b5536ffb6ee885f2 /drivers/soc/qcom | |
parent | 2bf8bda933a04b5b9cdeb9a6b412fd8bd1ea7500 (diff) | |
download | linux-stable-d13a5c8c4c3dbe299659bcff805f79a2c83e2bbc.tar.gz linux-stable-d13a5c8c4c3dbe299659bcff805f79a2c83e2bbc.tar.bz2 linux-stable-d13a5c8c4c3dbe299659bcff805f79a2c83e2bbc.zip |
soc: qcom: smd-rpm: Correct size of outgoing message
With the removal of VLAIS the size was incorrectly changed to only cover
the headers of the packet, resulting in "empty" requests being sent to
the RPM. Correct this so the entire message is transfered.
Fixes: 50e1b29b4438 ("soc: qcom: smd: Remove use of VLAIS")
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r-- | drivers/soc/qcom/smd-rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index 1ee02d2587b2..2969321e1b09 100644 --- a/drivers/soc/qcom/smd-rpm.c +++ b/drivers/soc/qcom/smd-rpm.c @@ -132,7 +132,7 @@ int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, pkt->req.data_len = cpu_to_le32(count); memcpy(pkt->payload, buf, count); - ret = qcom_smd_send(rpm->rpm_channel, pkt, sizeof(*pkt)); + ret = qcom_smd_send(rpm->rpm_channel, pkt, size); if (ret) goto out; |