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

Commit 43422f15 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Clear the local masks only during local usb disconnect"

parents df7097be 0e9118d2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -253,7 +253,8 @@ static void usb_disconnect_work_fn(struct work_struct *work)
	ch->name, atomic_read(&ch->disconnected), atomic_read(&ch->connected));

	if (!atomic_read(&ch->connected) &&
		driver->usb_connected && diag_mask_param())
		driver->usb_connected && diag_mask_param() &&
		ch->id == DIAG_USB_LOCAL)
		diag_clear_masks(0);

	usb_disconnect(ch);