Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d8d32ae6 authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti Committed by Sai Chaitanya Kaveti
Browse files

msm: mhi-net-dev: Don't over-write skb length



Once the read operation is done, mhi-net driver adds the read data
to the buffer by invoking skb_put() which takes care of updating
the length of skb.

In the existing logic, mhi-net driver is updating skb length thus
skb length is getting incremented twice causing extra (unwanted)
data then read to the client.

Fixing the same by removing the redundant length update logic.

Also move skb_put() ahead of eth_type_trans() as skb length is
being used in eth_type_trans().

Change-Id: I11c420a68f2ad69e8a58f29c620917382ff172f7
Signed-off-by: default avatarVeerabhadrarao Badiganti <quic_vbadigan@quicinc.com>
Signed-off-by: default avatarSai Chaitanya Kaveti <quic_skaveti@quicinc.com>
parent 41978afa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment