]> Pileus Git - ~andy/linux/blobdiff - arch/x86/kernel/ds.c
x86, bts: detect size of DS fields, fix
[~andy/linux] / arch / x86 / kernel / ds.c
index 7363e01ba082f4b3d2004ad6f87c0489a58290df..5fd53333c1dfcc8279f0ec6b7d7bcf44c2a0d8c2 100644 (file)
@@ -983,7 +983,7 @@ ds_configure(const struct ds_configuration *cfg,
        printk("bts/pebs record: %u/%u bytes\n",
               ds_cfg.sizeof_rec[ds_bts], ds_cfg.sizeof_rec[ds_pebs]);
 
-       WARN_ON_ONCE(MAX_SIZEOF_DS < (12 * ds_cfg.sizeof_field));
+       WARN_ON_ONCE(MAX_SIZEOF_DS < (12 * ds_cfg.sizeof_ptr_field));
 }
 
 void __cpuinit ds_init_intel(struct cpuinfo_x86 *c)