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

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

Merge "usb: f_gsi: Fix rndis message parsing of erroneous requests"

parents 6da0b6fe bce4a8a5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1579,6 +1579,12 @@ static void gsi_rndis_command_complete(struct usb_ep *ep,
	struct f_gsi *rndis = req->context;
	int status;

	if (req->status != 0) {
		log_event_err("RNDIS command completion error %d\n",
				req->status);
		return;
	}

	status = rndis_msg_parser(rndis->params, (u8 *) req->buf);
	if (status < 0)
		log_event_err("RNDIS command error %d, %d/%d",