From 4a7514cfffcbd208b0230d03a6cabced5d7887c2 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 20 Jan 2015 10:54:23 +0200 Subject: [PATCH] audio/avctp: Fix key auto release logic uinput key codes are 16 bits long not 8 bits, this may cause an overflow if the key code is above 0xff breaking the auto release logic. --- profiles/audio/avctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 74d351263..427904a15 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -178,7 +178,7 @@ struct avctp_channel { }; struct key_pressed { - uint8_t op; + uint16_t op; guint timer; }; -- 2.47.3