Merge "msm: ipa3: Add proper check for incoming skb"

This commit is contained in:
qctecmdr 2021-06-28 08:00:07 -07:00 • committed by Gerrit - the friendly Code Review server
commit 7eee966ca0

View file

@ -1204,6 +1204,11 @@ static netdev_tx_t ipa3_wwan_xmit(struct sk_buff *skb, struct net_device *dev)
return NETDEV_TX_OK;
}
if (unlikely(skb == NULL)) {
IPAWANERR_RL("unexpected NULL data\n");
return NETDEV_TX_BUSY;
}
if (skb->protocol != htons(ETH_P_MAP)) {
IPAWANDBG_LOW
("SW filtering out none QMAP packet received from %s",