|
@@ -92,7 +92,7 @@ int pkey_initialize(void)
|
|
* arch-neutral code.
|
|
* arch-neutral code.
|
|
*/
|
|
*/
|
|
pkeys_total = min_t(int, pkeys_total,
|
|
pkeys_total = min_t(int, pkeys_total,
|
|
- (ARCH_VM_PKEY_FLAGS >> VM_PKEY_SHIFT));
|
|
|
|
|
|
+ ((ARCH_VM_PKEY_FLAGS >> VM_PKEY_SHIFT)+1));
|
|
|
|
|
|
if (!pkey_mmu_enabled() || radix_enabled() || !pkeys_total)
|
|
if (!pkey_mmu_enabled() || radix_enabled() || !pkeys_total)
|
|
static_branch_enable(&pkey_disabled);
|
|
static_branch_enable(&pkey_disabled);
|