mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "msm: ipa3: Add proper check for incoming skb"
This commit is contained in:
commit
7eee966ca0
1 changed files with 5 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue