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

Commit 4ca785b0 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 930df60b faa13940
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -245,7 +245,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);