]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: Revert "media: rc: some events are dropped by userspace"
authorSean Young <sean@mess.org>
Fri, 22 Feb 2019 09:08:05 +0000 (04:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:19 +0000 (14:04 -0700)
commit1e983a42a08494f2cac428338df100cdcfe6bd3a
tree4694c2f0bf58c02bf1efe431518eda43ec467ed2
parentccf970be985d3264a27e74b876951173c6fa650f
media: Revert "media: rc: some events are dropped by userspace"

commit 05f0edadcc5fccdfc0676825b3e70e75dc0a8a84 upstream.

When an rc device is created, we do not know what key codes it will
support, since a new keymap might be loaded at some later point. So,
we set all keybit in the input device.

The uevent for the input device includes all the key codes, of which
there are now 768. This overflows the size of the uevent
(UEVENT_BUFFER_SIZE) and no event is generated.

Revert for now until we figure out a different solution.

This reverts commit fec225a04330d0f222d24feb5bea045526031675.

Cc: <stable@vger.kernel.org> # 4.20+
Reported-by: Christian Holpert <christian@holpert.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/rc-main.c