mm_pkey_is_allocated
if (!mm_pkey_is_allocated(mm, pkey))
if ((pkey != -1) && !mm_pkey_is_allocated(current->mm, pkey))