From: Stephan Berberig Date: Fri, 10 Aug 2007 20:10:31 +0000 (-0700) Subject: ACPI: bay: send envp with uevent - fix X-Git-Tag: v2.6.23-rc3~5^2~4^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7aa763cb56b6efdfa5c1b83c336abf1be914afcd;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 56a5b3f..6daf6088 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); }