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

Commit 992773f0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: emac: Fix invalid pointer dereference"

parents b253a938 525c36c0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -796,6 +796,8 @@ static void emac_poll_hwtxtstamp(struct emac_adapter *adpt)
				 */
				while ((pskb = __skb_dequeue(pending_q))
				       != skb) {
					if (!pskb)
						break;
					EMAC_HWTXTSTAMP_CB(pskb)->sec = 0;
					EMAC_HWTXTSTAMP_CB(pskb)->ns = 0;
					__skb_queue_tail(q, pskb);
@@ -1256,6 +1258,7 @@ static void emac_tx_map(struct emac_adapter *adpt,
	/* The last buffer info contain the skb address,
	 * so it will be freed after unmap
	 */
	if (tpbuf)
		tpbuf->skb = skb;
}