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

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

Merge "usb: gadget: u_bam: Release spinlock in case of skb_copy error"

parents b1395a00 afa3ae24
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -413,10 +413,8 @@ static void gbam_write_data_tohost(struct gbam_port *port)

	while (!list_empty(&d->tx_idle)) {
		skb = __skb_dequeue(&d->tx_skb_q);
		if (!skb) {
			spin_unlock_irqrestore(&port->port_lock_dl, flags);
			return;
		}
		if (!skb)
			break;

		/*
		 * Some UDC requires allocation of some extra bytes for
@@ -434,7 +432,7 @@ static void gbam_write_data_tohost(struct gbam_port *port)
					tail_room, GFP_ATOMIC);
			if (!new_skb) {
				pr_err("skb_copy_expand failed\n");
				return;
				break;
			}
			dev_kfree_skb_any(skb);
			skb = new_skb;