diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-29 23:10:34 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-31 23:09:59 +1100 |
commit | 85beb1c486df76a7a851a0e063785282c2608f37 (patch) | |
tree | da13f327c397a15d75ec0790bc143d9c790b4f23 /arch/powerpc/kvm/book3s_64_mmu_host.c | |
parent | powerpc/mm/hash: Use context ids 1-4 for the kernel (diff) | |
download | linux-dev-85beb1c486df76a7a851a0e063785282c2608f37.tar.xz linux-dev-85beb1c486df76a7a851a0e063785282c2608f37.zip |
powerpc/mm/hash: Check for non-kernel address in get_kernel_vsid()
get_kernel_vsid() has a very stern comment saying that it's only valid
for kernel addresses, but there's nothing in the code to enforce that.
Rather than hoping our callers are well behaved, add a check and return
a VSID of 0 (invalid).
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_mmu_host.c')
0 files changed, 0 insertions, 0 deletions