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

Commit e4b38fc2 authored by Udipto Goswami's avatar Udipto Goswami
Browse files

usb: f_qdss: Setting channel to NULL in qdss_close



When qdss_close is executed before disconnect_work
there is possibility that from disconnect_work channel
priv would be passed as NULL to the notifier resulting
in page fault error.

Fix this by setting notify to NULL on qdss_close.

Change-Id: Ifdfc43733221fdc1dc3bcd8a40f32e1b021398a8
Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent 7caba938
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1034,6 +1034,7 @@ void usb_qdss_close(struct usb_qdss_ch *ch)
	usb_qdss_free_req(ch);
close:
	ch->priv_usb = NULL;
	ch->notify = NULL;
	if (!qdss || !qdss->usb_connected ||
			!strcmp(qdss->ch.name, USB_QDSS_CH_MDM)) {
		ch->app_conn = 0;