Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299224
b: refs/heads/master
c: b78f29c
h: refs/heads/master
v: v3
  • Loading branch information
Wang YanQing authored and Florian Tobias Schandinat committed Apr 9, 2012
1 parent 0f5b4b0 commit 4598986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93019734555f8df32239c5922fe2b770c0a08eaa
refs/heads/master: b78f29ca0516266431688c5eb42d39ce42ec039a
11 changes: 9 additions & 2 deletions trunk/drivers/video/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,15 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info)
par->pmi_setpal = pmi_setpal;
par->ypan = ypan;

if (par->pmi_setpal || par->ypan)
uvesafb_vbe_getpmi(task, par);
if (par->pmi_setpal || par->ypan) {
if (__supported_pte_mask & _PAGE_NX) {
par->pmi_setpal = par->ypan = 0;
printk(KERN_WARNING "uvesafb: NX protection is actively."
"We have better not to use the PMI.\n");
} else {
uvesafb_vbe_getpmi(task, par);
}
}
#else
/* The protected mode interface is not available on non-x86. */
par->pmi_setpal = par->ypan = 0;
Expand Down

0 comments on commit 4598986

Please sign in to comment.