mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 untilef8313bb1a, but was introduced about a year earlier with7705d548cb(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 <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
799a2a215e
commit
708748670c
1 changed files with 2 additions and 2 deletions
|
|
@ -836,8 +836,8 @@ static const struct dmi_system_id __initconst toshiba_dmi_table[] = {
|
|||
},
|
||||
|
||||
},
|
||||
{ }
|
||||
#endif
|
||||
{ }
|
||||
};
|
||||
|
||||
static bool broken_olpc_ec;
|
||||
|
|
@ -851,8 +851,8 @@ static const struct dmi_system_id __initconst olpc_dmi_table[] = {
|
|||
DMI_MATCH(DMI_PRODUCT_NAME, "XO"),
|
||||
},
|
||||
},
|
||||
{ }
|
||||
#endif
|
||||
{ }
|
||||
};
|
||||
|
||||
void __init synaptics_module_init(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue