]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: vmmouse - fix absolute device registration
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 16 Jan 2016 18:04:49 +0000 (10:04 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 23 Feb 2016 05:49:36 +0000 (00:49 -0500)
commitf5fa85b4e599a45e6d056d44eb920eb42ed63849
treeb28b1223b44c82a9173a4f1551e2e6903a869d43
parentc77c01982668678a5fafe3036be4e757b7eddbaf
Input: vmmouse - fix absolute device registration

[ Upstream commit d4f1b06d685d11ebdaccf11c0db1cb3c78736862 ]

We should set device's capabilities first, and then register it,
otherwise various handlers already present in the kernel will not be
able to connect to the device.

Reported-by: Lauri Kasanen <cand@gmx.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/input/mouse/vmmouse.c