# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#                  ChangeSet    1.681   -> 1.682  
#       drivers/base/hotplug.c  1.2     -> 1.3    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/02      [EMAIL PROTECTED]  1.682
# [PATCH] hotplug: fix for non-pci and usb calls
# 
# clear the environment variables so for busses without callbacks, we can
# successfully call /sbin/hotplug.
# 
# Thanks to [EMAIL PROTECTED] for finding this bug.
# --------------------------------------------
#
diff -Nru a/drivers/base/hotplug.c b/drivers/base/hotplug.c
--- a/drivers/base/hotplug.c    Wed Oct  2 22:40:07 2002
+++ b/drivers/base/hotplug.c    Wed Oct  2 22:40:07 2002
@@ -62,6 +62,7 @@
        envp = (char **) kmalloc (NUM_ENVP * sizeof (char *), GFP_KERNEL);
        if (!envp)
                return -ENOMEM;
+       memset (envp, 0x00, NUM_ENVP * sizeof (char *));
 
        buffer = kmalloc (BUFFER_SIZE, GFP_KERNEL);
        if (!buffer) {


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to