riscv: add return in decodeRISCVFrameInvocation

Previous change to return values accidentally removed it.

Signed-off-by: Rafal Kolanski <rafal.kolanski@data61.csiro.au>
This commit is contained in:
Rafal Kolanski 2020-04-28 07:37:50 +10:00
parent bc5ef019f9
commit 4a8b9edb8f

View file

@ -850,6 +850,7 @@ static exception_t decodeRISCVFrameInvocation(word_t label, word_t length,
userError("RISCVPageMap: attempting to map frame into multiple addresses");
current_syscall_error.type = seL4_InvalidArgument;
current_syscall_error.invalidArgumentNumber = 0;
return EXCEPTION_SYSCALL_ERROR;
}
if (unlikely(isPTEPageTable(lu_ret.ptSlot))) {
userError("RISCVPageMap: no mapping to remap.");