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

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 <>
Cc: Kristen Carlson Accardi <>
Signed-off-by: default avatarAndrew Morton <>
Acked-by: default avatarGreg Kroah-Hartman <>
Signed-off-by: default avatarLen Brown <>
parent 3864e8cc
......@@ -337,7 +337,7 @@ static void bay_notify(acpi_handle handle, u32 event, void *data)
char *envp[] = { event_string, NULL };
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);
Supports Markdown
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