projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3864e8c
)
ACPI: bay: send envp with uevent - fix
author
Stephan Berberig
<
[email protected]
>
Fri, 10 Aug 2007 20:10:31 +0000
(13:10 -0700)
committer
Len Brown
<
[email protected]
>
Sun, 12 Aug 2007 02:10:04 +0000
(22:10 -0400)
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 <
[email protected]
>
Cc: Kristen Carlson Accardi <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Acked-by: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Len Brown <
[email protected]
>
drivers/acpi/bay.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/bay.c
b/drivers/acpi/bay.c
index 56a5b3fffeb364a14e8fe3ff7f5b9a1ff103f51e..6daf6088ac888329177f35e4f7258bc8dfa42ddb 100644
(file)
--- 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);
}