Skip to content
Commit 85beb1c4 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 941711a3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment