fix incorrect reporting of whether nx is disabled or not

Thanks to Kees Cook for noticing.
Message-ID: <20101121070342.GE4617@outflux.net>
This commit is contained in:
Kyle McMartin 2010-11-22 14:45:44 -05:00
parent 61b68ccc4d
commit ae441b0e31

View File

@ -384,7 +384,7 @@
void __init x86_report_nx(void)
{
if (!cpu_has_nx) {
+ if (disable_nx)
+ if (!disable_nx)
+ printk(KERN_INFO "Using x86 segment limits to approximate NX protection\n");
+ else
+