]> Pileus Git - ~andy/linux/commit
Input: psmouse - make sure we do not use stale methods
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 30 Dec 2011 23:16:45 +0000 (15:16 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 30 Dec 2011 23:26:36 +0000 (15:26 -0800)
commitee9dfd7a1d1256b0f51a0bf54bed0a8927c8e2ea
tree68969aa5568644cc3908f07371992aedba70f7f0
parent509f87c5f564627b6b9fc763e74ef3608213d610
Input: psmouse - make sure we do not use stale methods

Several protocol initialization routines can fail after they set up
psmouse methods, such as reconnect and disconnect. This may lead to
these stale methods used with different protocol that they were
intended to be used for and may cause unpredictavle behavior and/or
crashes.

Make sure we start with a clean slate before executing each and every
protocol detection and/or initialization routine.

Reported-by: Paul Fox <pgf@laptop.org>
Acked-by: Tai-hwa Liang <avatar@sentelic.com>
Acked-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c