Skip to contentSkip to conversation

dell-laptop: Terminate quirks list properly

PATCH In review Martin Nyhus 2 participants 3 messages Mar 15, 2012 – Apr 17, 2012 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dell-laptop: Terminate quirks list properly

Add missing DMI_NONE entry to end of the quirks list so dmi_check_system() won't read past the end of the list.

---
 drivers/platform/x86/dell-laptop.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/platform/x86/dell-laptop.c +1 -0
index a05fc9c..e6c08ee 100644
@@ -212,6 +212,7 @@ static struct dmi_system_id __devinitdata dell_quirks[] = {
 		},
 		.driver_data = &quirk_dell_vostro_v130,
 	},
+	{ }
 };
 
 static struct calling_interface_buffer *buffer;
Signature · 1 line
1.7.7.6
#1 lore raw

Matthew, did you see this?

Quoted 20 lines · On Thursday 15. March 2012 18:25:48 Martin Nyhus wrote:

Add missing DMI_NONE entry to end of the quirks list so dmi_check_system() won't read past the end of the list.

---
 drivers/platform/x86/dell-laptop.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/drivers/platform/x86/dell-laptop.c index a05fc9c..e6c08ee 100644

drivers/platform/x86/dell-laptop.c +1 -0
@@ -212,6 +212,7 @@ static struct dmi_system_id __devinitdata dell_quirks[]
 = { },
 		.driver_data = &quirk_dell_vostro_v130,
 	},
+	{ }
 };
 
 static struct calling_interface_buffer *buffer;