]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/mprotect.c
rtc: m41t80: remove excess kerneldoc
[linux.git] / mm / mprotect.c
index 675e5d34a5077303648f72bb2af9439449d9544c..7967825f6d3352b3b57ccd23018d461d41498b78 100644 (file)
@@ -459,6 +459,8 @@ static int do_mprotect_pkey(unsigned long start, size_t len,
        const bool rier = (current->personality & READ_IMPLIES_EXEC) &&
                                (prot & PROT_READ);
 
+       start = untagged_addr(start);
+
        prot &= ~(PROT_GROWSDOWN|PROT_GROWSUP);
        if (grows == (PROT_GROWSDOWN|PROT_GROWSUP)) /* can't be both */
                return -EINVAL;