[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1210400990.29406.179.camel@koto.keithp.com>
Date: Fri, 09 May 2008 23:29:50 -0700
From: Keith Packard <keith.packard@...el.com>
To: Dave Airlie <airlied@...il.com>
Cc: keith.packard@...el.com,
"Pallipadi, Venkatesh" <venkatesh.pallipadi@...el.com>,
Ingo Molnar <mingo@...e.hu>, Hugh Dickins <hugh@...itas.com>,
Frans Pop <elendil@...net.nl>,
"Barnes, Jesse" <jesse.barnes@...el.com>,
linux-kernel@...r.kernel.org, Yinghai Lu <yhlu.kernel@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
"H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Nick Piggin <npiggin@...e.de>,
Jesse Barnes <jbarnes@...tuousgeek.org>
Subject: Re: [git head] X86_PAT & mprotect
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@...el.com
Download attachment "signature.asc" of type "application/pgp-signature" (190 bytes)
Powered by blists - more mailing lists