Merge "usb: f_gsi: Fix rndis message parsing of erroneous requests"
This commit is contained in:
commit
fc30a7a640
1 changed files with 6 additions and 0 deletions
|
@ -1579,6 +1579,12 @@ static void gsi_rndis_command_complete(struct usb_ep *ep,
|
||||||
struct f_gsi *rndis = req->context;
|
struct f_gsi *rndis = req->context;
|
||||||
int status;
|
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);
|
status = rndis_msg_parser(rndis->params, (u8 *) req->buf);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
log_event_err("RNDIS command error %d, %d/%d",
|
log_event_err("RNDIS command error %d, %d/%d",
|
||||||
|
|
Loading…
Add table
Reference in a new issue