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

Commit 278f8975 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "f_gsi: Fix NULL pointer dereference when USB endpoint is not available"

parents 8ede421b 15b61160
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2766,8 +2766,12 @@ static int gsi_bind(struct usb_configuration *c, struct usb_function *f)
			f->name,
			gadget_is_superspeed(c->cdev->gadget) ? "super" :
			gadget_is_dualspeed(c->cdev->gadget) ? "dual" : "full",
			gsi->d_port.in_ep->name, gsi->d_port.out_ep->name,
			gsi->c_port.notify->name);
			(gsi->d_port.in_ep == NULL ? "NULL" :
					gsi->d_port.in_ep->name),
			(gsi->d_port.out_ep == NULL ? "NULL" :
					gsi->d_port.out_ep->name),
			(gsi->c_port.notify == NULL ? "NULL" :
					gsi->c_port.notify->name));
	return 0;

dereg_rndis: