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

Commit c11204d9 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: Avoid NULL pointer dereference in gbam_connect_work"

parents 2f04273d 3e920c48
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -922,7 +922,9 @@ static void gbam_start_io(struct gbam_port *port)

	if (_gbam_start_io(port, false)) {
		spin_lock_irqsave(&port->port_lock_dl, flags);
		gbam_free_requests(port->port_usb->in, &port->data_ch.rx_idle);
		if (port->port_usb)
			gbam_free_requests(port->port_usb->in,
				&port->data_ch.tx_idle);
		spin_unlock_irqrestore(&port->port_lock_dl, flags);
		return;
	}