Skip to content
Commit 82d34008 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

arm64: Improve error reporting on set_pte_at() checks



Currently the BUG_ON() checks do not give enough information about the
PTEs being set. This patch changes BUG_ON to WARN_ONCE and dumps the
values of the old and new PTEs. In addition, the checks are only made if
the new PTE entry is valid.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reported-by: default avatarMing Lei <tom.leiming@gmail.com>
Cc: Will Deacon <will.deacon@arm.com>
parent 98fb7548
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