Re: [git head] X86_PAT & mprotect

From: Keith Packard
Date: Sat May 10 2008 - 02:30:43 EST


On Sat, 2008-05-10 at 16:19 +1000, Dave Airlie wrote:

> Keithp, I hope we didn't error check the mremap return values :)

/* KLUDGE ALERT -- rewrite the PTEs to turn off the CD and WT bits */
mprotect (map->memory, map->size, PROT_NONE);
mprotect (map->memory, map->size, PROT_READ|PROT_WRITE);

No return value checks for us ;-)

--
keith.packard@xxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part