]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: wwan: iosm: fix incorrect skb length
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 24 Nov 2022 10:38:32 +0000 (16:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2022 11:31:59 +0000 (11:31 +0000)
commitc34ca4f32c24bf748493b49085e43cd714cf8357
tree010e48f7deda5f84ad3324ccf1f5237a133a45a7
parent2290a1d46bf30f9e0bcf49ad20d5c30d0e099989
net: wwan: iosm: fix incorrect skb length

skb passed to network layer contains incorrect length.

In mux aggregation protocol, the datagram block received
from device contains block signature, packet & datagram
header. The right skb len to be calculated by subracting
datagram pad len from datagram length.

Whereas in mux lite protocol, the skb contains single
datagram so skb len is calculated by subtracting the
packet offset from datagram header.

Fixes: 1f52d7b62285 ("net: wwan: iosm: Enable M.2 7360 WWAN card support")
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c