Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mwifiex: update command response skb length correctly

Same skb is being reused for storing command response from firmware
in PCIe chipsets. There was a bug while updating the skb length.
This patch ensures skb length correctly gets updated based on rx_len.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Amitkumar Karwar and committed by
Kalle Valo
2fd40d2d 51495288

+1
+1
drivers/net/wireless/marvell/mwifiex/pcie.c
··· 1616 1616 1617 1617 pkt_len = *((__le16 *)skb->data); 1618 1618 rx_len = le16_to_cpu(pkt_len); 1619 + skb_put(skb, MWIFIEX_UPLD_SIZE - skb->len); 1619 1620 skb_trim(skb, rx_len); 1620 1621 skb_pull(skb, INTF_HEADER_LEN); 1621 1622