diff options
| author | Benoit Goby <[email protected]> | 2012-05-10 10:08:03 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-05-10 12:26:47 -0700 |
| commit | 80134da9d244eddbc840a446bdda2ac80932a769 (patch) | |
| tree | 41a88f034565c29ac6e511aa96bfa2118089d473 /include | |
| parent | 036e98b2162d1ed361ed6d31ab009764bb507340 (diff) | |
usb: gadget: rndis: Fix re-binding f_rndis
f_rndis checks if rndis_string_defs[0].id is null to setup rndis
and allocate string ids when it is bound to the first configuration:
/* maybe allocate device-global string IDs */
if (rndis_string_defs[0].id == 0) {
/* ... and setup RNDIS itself */
status = rndis_init();
if (status < 0)
return status;
rndis_string_defs[0].id must be reset to 0 on unbind for rndis to be
correctly initialized on the next composite_bind.
Signed-off-by: Benoit Goby <[email protected]>
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions