Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e7ec72 authored by Praveen Kurapati's avatar Praveen Kurapati
Browse files

msm: ipa3: Add proper check for incoming skb



There is a chance that incoming skb can is NULL in TX direction.
Add proper check to avoid any NULL ptr access issue.

Change-Id: I8bd4524e20ddefb4bd30a3ca4a09b65370b9b4ae
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent 3cb33329
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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",