We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9301973 commit b78f29cCopy full SHA for b78f29c
drivers/video/uvesafb.c
@@ -815,8 +815,15 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info)
815
par->pmi_setpal = pmi_setpal;
816
par->ypan = ypan;
817
818
- if (par->pmi_setpal || par->ypan)
819
- uvesafb_vbe_getpmi(task, par);
+ if (par->pmi_setpal || par->ypan) {
+ if (__supported_pte_mask & _PAGE_NX) {
820
+ par->pmi_setpal = par->ypan = 0;
821
+ printk(KERN_WARNING "uvesafb: NX protection is actively."
822
+ "We have better not to use the PMI.\n");
823
+ } else {
824
+ uvesafb_vbe_getpmi(task, par);
825
+ }
826
827
#else
828
/* The protected mode interface is not available on non-x86. */
829
par->pmi_setpal = par->ypan = 0;
0 commit comments