|
@@ -5163,7 +5163,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
|
|
|
/* Handle notifying userspace about hub over-current events */
|
|
|
static void port_over_current_notify(struct usb_port *port_dev)
|
|
|
{
|
|
|
- static char *envp[] = { NULL, NULL, NULL };
|
|
|
+ char *envp[3];
|
|
|
struct device *hub_dev;
|
|
|
char *port_dev_path;
|
|
|
|
|
@@ -5187,6 +5187,7 @@ static void port_over_current_notify(struct usb_port *port_dev)
|
|
|
if (!envp[1])
|
|
|
goto exit;
|
|
|
|
|
|
+ envp[2] = NULL;
|
|
|
kobject_uevent_env(&hub_dev->kobj, KOBJ_CHANGE, envp);
|
|
|
|
|
|
kfree(envp[1]);
|