From: Dmitry Torokhov Date: Thu, 6 Mar 2014 20:57:24 +0000 (-0800) Subject: Input: mousedev - fix race when creating mixed device X-Git-Tag: v3.14~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4dbedc7eac7da9db363a36f2bd4366962eeefcc;p=pandora-kernel.git Input: mousedev - fix race when creating mixed device We should not be using static variable mousedev_mix in methods that can be called before that singleton gets assigned. While at it let's add open and close methods to mousedev structure so that we do not need to test if we are dealing with multiplexor or normal device and simply call appropriate method directly. This fixes: https://bugzilla.kernel.org/show_bug.cgi?id=71551 Reported-by: GiulioDP Tested-by: GiulioDP Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed