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:Veerabhadrarao Badiganti <quic_vbadigan@quicinc.com> Signed-off-by:
Sai Chaitanya Kaveti <quic_skaveti@quicinc.com>
Loading
Please register or sign in to comment