]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: synaptics - fix crash in synaptics_module_init()
authorJan Beulich <JBeulich@novell.com>
Thu, 31 Mar 2011 07:01:58 +0000 (00:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 20:02:17 +0000 (13:02 -0700)
commitb544388a92e32a0f8a2a1cccc70fcf455b92fb5d
tree2ed1fdf0b4b8565d3c84b8c0e6a1605c071c773e
parenta41fc5e39b21e83d9dc01ef3e0f02b8434c3d823
Input: synaptics - fix crash in synaptics_module_init()

commit 708748670c7c6dd5bd3b141473086e6937e72737 upstream.

'struct dmi_system_id' arrays must always have a terminator to keep
dmi_check_system() from looking at data (and possibly crashing) it
isn't supposed to look at.

The issue went unnoticed until ef8313bb1a22e7d2125d9d758aa8a81f1de91d81,
but was introduced about a year earlier with
7705d548cbe33f18ea7713b9a07aa11047aaeca4 (which also similarly changed
lifebook.c, but the problem there got eliminated shortly afterwards).

The first hunk therefore is a stable candidate back to 2.6.33, while
the full change is needed only on 2.6.38.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/mouse/synaptics.c