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

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

Merge "usb: gsi: Add NULL pointer check"

parents b2cb5d11 d40224d7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -855,8 +855,10 @@ static int gsi_ep_enable(struct f_gsi *gsi)
		ret = usb_gsi_ep_op(gsi->d_port.out_ep,
				&gsi->d_port.out_request, GSI_EP_OP_CONFIG);
		if (ret) {
			if (gsi->d_port.in_ep)
				usb_gsi_ep_op(gsi->d_port.in_ep,
				&gsi->d_port.in_request, GSI_EP_OP_DISABLE);
					&gsi->d_port.in_request,
					GSI_EP_OP_DISABLE);
			return ret;
		}
	}