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

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

Merge "USB: u_bam: Reserve skb headroom only if needed"

parents d32cac3e 6c7d6772
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -244,6 +244,8 @@ static struct sk_buff *gbam_alloc_skb_from_pool(struct gbam_port *port)
	} else {
		pr_debug("%s: pull skb from pool\n", __func__);
		skb = __skb_dequeue(&d->rx_skb_idle);
		if (skb_headroom(skb) < BAM_MUX_HDR)
			skb_reserve(skb, BAM_MUX_HDR);
	}

	spin_unlock_irqrestore(&port->port_lock_ul, flags);