ChangeSet 1.2181.4.2, 2005/03/14 22:57:48-08:00, [EMAIL PROTECTED]
[PATCH] USB: minor cleanup of string freeing in core code.
As pointed out by Paulo Marques <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
config.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/drivers/usb/core/config.c b/drivers/usb/core/config.c
--- a/drivers/usb/core/config.c 2005-03-30 15:04:27 -08:00
+++ b/drivers/usb/core/config.c 2005-03-30 15:04:27 -08:00
@@ -420,8 +420,8 @@
for (c = 0; c < dev->descriptor.bNumConfigurations; c++) {
struct usb_host_config *cf = &dev->config[c];
- if (cf->string)
- kfree(cf->string);
+ kfree(cf->string);
+ cf->string = NULL;
for (i = 0; i < cf->desc.bNumInterfaces; i++) {
if (cf->intf_cache[i])
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html