[PATCH 6.1 172/217] riscv: fix overlap of allocated page and PTR_ERR