Skip to content

Commit fcd3027

Browse files
committed
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>
1 parent 85b7720 commit fcd3027

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/input.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ static int input_add_uevent_bm_var(struct kobj_uevent_env *env,
14731473
{
14741474
int len;
14751475

1476-
if (add_uevent_var(env, "%s=", name))
1476+
if (add_uevent_var(env, "%s", name))
14771477
return -ENOMEM;
14781478

14791479
len = input_print_bitmap(&env->buf[env->buflen - 1],

0 commit comments

Comments
 (0)