X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fusercopy.c;h=8345299e3e3b08e617f425ae18050a794b50b5e4;hb=176180c2b4ae673394b4b37474cfd3e3fd9d0c5e;hp=3c8da0af96959387e9bb1d2c0bfe272334344e26;hpb=35a891be96f1f8e1227e6ad3ca827b8a08ce47ea;p=karo-tx-linux.git diff --git a/mm/usercopy.c b/mm/usercopy.c index 3c8da0af9695..8345299e3e3b 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -108,13 +108,13 @@ static inline const char *check_kernel_text_object(const void *ptr, * __pa() is not just the reverse of __va(). This can be detected * and checked: */ - textlow_linear = (unsigned long)__va(__pa(textlow)); + textlow_linear = (unsigned long)lm_alias(textlow); /* No different mapping: we're done. */ if (textlow_linear == textlow) return NULL; /* Check the secondary mapping... */ - texthigh_linear = (unsigned long)__va(__pa(texthigh)); + texthigh_linear = (unsigned long)lm_alias(texthigh); if (overlaps(ptr, n, textlow_linear, texthigh_linear)) return "";