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

Commit bc43fb34 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: do runtime_put even if BAM channel was not opened"

parents d408215e 2913747e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1168,7 +1168,7 @@ static void gbam_disconnect_work(struct work_struct *w)

	if (!test_bit(BAM_CH_OPENED, &d->flags)) {
		pr_err("%s: Bam channel is not opened\n", __func__);
		return;
		goto exit;
	}

	msm_bam_dmux_close(d->id);
@@ -1177,6 +1177,7 @@ static void gbam_disconnect_work(struct work_struct *w)
	 * Decrement usage count which was incremented upon cable connect
	 * or cable disconnect in suspended state
	 */
exit:
	usb_gadget_autopm_put_async(port->gadget);
}