[PATCH 09/31] powerpc/mm: Don't use pte_val as lvalue
Scott Wood
scottwood at freescale.com
Tue Sep 22 12:22:23 AEST 2015
On Mon, Sep 21, 2015 at 12:10:36PM +0530, Aneesh Kumar K.V wrote:
> +static inline pte_t pte_mkwrite(pte_t pte)
> +{
> + pte_basic_t ptev;
> +
> + ptev = pte_val(pte) & ~_PAGE_RO;
> + ptev |= _PAGE_RW;
> + return __pte(pte);
> +}
s/__pte(pte)/__pte(ptev)/
...to fix an endless handle_mm_fault() loop.
CONFIG_STRICT_MM_TYPECHECKS would have caught this.
-Scott
More information about the Linuxppc-dev
mailing list