aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/dmi_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/dmi_scan.c b/arch/i386/kernel/dmi_scan.c
index 6a93d75db431..ca2a0cbcac04 100644
--- a/arch/i386/kernel/dmi_scan.c
+++ b/arch/i386/kernel/dmi_scan.c
@@ -106,7 +106,7 @@ static void __init dmi_save_devices(struct dmi_header *dm)
106 struct dmi_device *dev; 106 struct dmi_device *dev;
107 107
108 for (i = 0; i < count; i++) { 108 for (i = 0; i < count; i++) {
109 char *d = ((char *) dm) + (i * 2); 109 char *d = (char *)(dm + 1) + (i * 2);
110 110
111 /* Skip disabled device */ 111 /* Skip disabled device */
112 if ((*d & 0x80) == 0) 112 if ((*d & 0x80) == 0)