Merge "usb: f_rndis: Fix rndis message parsing of erroneous requests"
This commit is contained in:
commit
ab774aaad3
1 changed files with 6 additions and 0 deletions
|
@ -463,6 +463,12 @@ static void rndis_command_complete(struct usb_ep *ep, struct usb_request *req)
|
||||||
int status;
|
int status;
|
||||||
rndis_init_msg_type *buf;
|
rndis_init_msg_type *buf;
|
||||||
|
|
||||||
|
if (req->status != 0) {
|
||||||
|
pr_err("%s: RNDIS command completion error:%d\n",
|
||||||
|
__func__, req->status);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* received RNDIS command from USB_CDC_SEND_ENCAPSULATED_COMMAND */
|
/* received RNDIS command from USB_CDC_SEND_ENCAPSULATED_COMMAND */
|
||||||
// spin_lock(&dev->lock);
|
// spin_lock(&dev->lock);
|
||||||
status = rndis_msg_parser(rndis->params, (u8 *) req->buf);
|
status = rndis_msg_parser(rndis->params, (u8 *) req->buf);
|
||||||
|
|
Loading…
Add table
Reference in a new issue