From: Stephan Berberig Date: Fri, 10 Aug 2007 20:10:31 +0000 (-0700) Subject: ACPI: bay: send envp with uevent - fix X-Git-Tag: MMI-PSA29.97-13-9~40779^2~4^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7aa763cb56b6efdfa5c1b83c336abf1be914afcd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Stephan Berberig Cc: Kristen Carlson Accardi Signed-off-by: Andrew Morton Acked-by: Greg Kroah-Hartman Signed-off-by: Len Brown --- diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 56a5b3fffeb3..6daf6088ac88 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c @@ -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); }