cxl: Only check pid for userspace contexts
authorMichael Neuling <mikey@neuling.org>
Wed, 27 May 2015 06:07:11 +0000 (16:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jun 2015 03:27:18 +0000 (13:27 +1000)
commita6b07d825750f76eeb2972c70a8f0e6e62566954
tree9daf5f8480eae903eac12f258cd239afb78b3555
parent1a1a94b876b9159d2b10675d8f680f7bbedc163e
cxl: Only check pid for userspace contexts

We only need to check the pid attached to this context for userspace contexts.
Kernel contexts can skip this check.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/fault.c