rpmsg: glink: use correct data pointer in packets larger than 8k

Only first 8K data is sending repeatedly in split and sending case.

Update data pointer with correct index while sending split packets.

CRs-Fixed: 2391918
Change-Id: I48925c0249c8849a6df388de1b98aa5b2a524e2e
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
This commit is contained in:
Arun Kumar Neelakantam 2019-02-04 14:00:59 +05:30 committed by Chris Lew
parent 37d78deabf
commit 56e0a4832c

View file

@ -1505,6 +1505,7 @@ static int __qcom_glink_send(struct glink_channel *channel,
}
while (left_size > 0) {
data = (void *)((char *)data + chunk_size);
chunk_size = left_size;
if (chunk_size > SZ_8K)
chunk_size = SZ_8K;