]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pkeys: Fix calculation of total pkeys.
authorRam Pai <linuxram@us.ibm.com>
Tue, 17 Jul 2018 13:51:06 +0000 (06:51 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 11:35:09 +0000 (21:35 +1000)
commit8318ab0d51ac9d47594c2cdf9b83792a6e7db0eb
tree91ded5205f3b862ecfaf5d1e8c7000e288886c0c
parentf25bccebd097694f7b3a1c64f2f20799fee15eea
powerpc/pkeys: Fix calculation of total pkeys.

Total number of pkeys calculation is off by 1. Fix it.

Fixes: ff3403724bc6 ("powerpc: track allocation status of all pkeys")
Cc: stable@vger.kernel.org # v4.16+
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pkeys.c