Commit 7aa763cb authored by Stephan Berberig's avatar Stephan Berberig Committed by Len Brown

ACPI: bay: send envp with uevent - fix

There must not be a new-line character in the uevent.  Otherwise, udev gets
confused.  Thanks to Kay Sievers for pointing it out.
Signed-off-by: default avatarStephan Berberig <s.berberig@arcor.de>
Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3864e8cc
...@@ -337,7 +337,7 @@ static void bay_notify(acpi_handle handle, u32 event, void *data) ...@@ -337,7 +337,7 @@ static void bay_notify(acpi_handle handle, u32 event, void *data)
char *envp[] = { event_string, NULL }; char *envp[] = { event_string, NULL };
bay_dprintk(handle, "Bay event"); bay_dprintk(handle, "Bay event");
sprintf(event_string, "BAY_EVENT=%d\n", event); sprintf(event_string, "BAY_EVENT=%d", event);
kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment