aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-12-18 14:28:26 -0500
committerHenrik Rydberg <rydberg@euromail.se>2010-12-20 03:37:37 -0500
commitfcd3027abbbcc26248714eddae40af3fb3c8a82e (patch)
tree123929b6feefb01b6ec020eea76701178137b790
parent85b7720039fc000b561c20fe2aaa3b54cddae4a7 (diff)
Input: fix double equality sign in uevent
Looking at the uevent stream for input devices, all properties are on the form "A=B" except the bitmap values, which are on the form "A==B". This bug has been around at least since 2007, and the input uevent code has been untouched since. The recent addition of device properties suggests this is a good time for a remedy. Acked-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--drivers/input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 9ea713f4192b..3bb6907f26d6 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1473,7 +1473,7 @@ static int input_add_uevent_bm_var(struct kobj_uevent_env *env,
1473{ 1473{
1474 int len; 1474 int len;
1475 1475
1476 if (add_uevent_var(env, "%s=", name)) 1476 if (add_uevent_var(env, "%s", name))
1477 return -ENOMEM; 1477 return -ENOMEM;
1478 1478
1479 len = input_print_bitmap(&env->buf[env->buflen - 1], 1479 len = input_print_bitmap(&env->buf[env->buflen - 1],