[PATCH 6.9 224/281] riscv: fix overlap of allocated page and PTR_ERR