Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210217
b: refs/heads/master
c: 037d365
h: refs/heads/master
i:
  210215: be07f81
v: v3
  • Loading branch information
Maxim Osipov authored and Greg Kroah-Hartman committed Sep 4, 2010
1 parent 0c11aad commit 4f7ae08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 793f03aa7bda8f492e12ada3de711b4ad7f4d8d0
refs/heads/master: 037d3656adbd7e8cb848f01cf5dec423ed76bbe7
10 changes: 7 additions & 3 deletions trunk/drivers/usb/gadget/rndis.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,13 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len,
/* mandatory */
case OID_GEN_VENDOR_DESCRIPTION:
pr_debug("%s: OID_GEN_VENDOR_DESCRIPTION\n", __func__);
length = strlen (rndis_per_dev_params [configNr].vendorDescr);
memcpy (outbuf,
rndis_per_dev_params [configNr].vendorDescr, length);
if ( rndis_per_dev_params [configNr].vendorDescr ) {
length = strlen (rndis_per_dev_params [configNr].vendorDescr);
memcpy (outbuf,
rndis_per_dev_params [configNr].vendorDescr, length);
} else {
outbuf[0] = 0;
}
retval = 0;
break;

Expand Down

0 comments on commit 4f7ae08

Please sign in to comment.