diff options
Diffstat (limited to 'drivers/usb/gadget/rndis.c')
-rw-r--r-- | drivers/usb/gadget/rndis.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index c9a0af29ecb6..06b6eba925b5 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c | |||
@@ -1025,11 +1025,17 @@ int rndis_signal_disconnect (int configNr) | |||
1025 | 1025 | ||
1026 | void rndis_uninit (int configNr) | 1026 | void rndis_uninit (int configNr) |
1027 | { | 1027 | { |
1028 | u8 *buf; | ||
1029 | u32 length; | ||
1030 | |||
1028 | if (configNr >= RNDIS_MAX_CONFIGS) | 1031 | if (configNr >= RNDIS_MAX_CONFIGS) |
1029 | return; | 1032 | return; |
1030 | rndis_per_dev_params [configNr].used = 0; | 1033 | rndis_per_dev_params [configNr].used = 0; |
1031 | rndis_per_dev_params [configNr].state = RNDIS_UNINITIALIZED; | 1034 | rndis_per_dev_params [configNr].state = RNDIS_UNINITIALIZED; |
1032 | return; | 1035 | |
1036 | /* drain the response queue */ | ||
1037 | while ((buf = rndis_get_next_response(configNr, &length))) | ||
1038 | rndis_free_response(configNr, buf); | ||
1033 | } | 1039 | } |
1034 | 1040 | ||
1035 | void rndis_set_host_mac (int configNr, const u8 *addr) | 1041 | void rndis_set_host_mac (int configNr, const u8 *addr) |