]> git.baikalelectronics.ru Git - kernel.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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 31 Mar 2011 07:04:52 +0000 (00:04 -0700)
commit63801cc2ec111508271694322e96140b62e0e632
treeb996c9882f948196913fd24d43470c68e54575cb
parentdd3c5094b7950de04e0ea8af2192dfae9256a514
Input: synaptics - fix crash in synaptics_module_init()

'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 f2908c2490b93b78b6e69fe87a4e942d819720f8,
but was introduced about a year earlier with
971d9c904a1853d051a361add42b7e1be7a353ea (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>
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/synaptics.c