Skip to content

Commit d74257a

Browse files
fogtijounathaen
authored andcommitted
fix(hypercall): uniform error reporting on invalid hypercalls
1 parent b4e2b0b commit d74257a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypercall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub unsafe fn address_to_hypercall(
7474
let sysserialwrite = unsafe { mem.get_ref_mut(data).unwrap() };
7575
Hypercall::SerialWriteBuffer(sysserialwrite)
7676
}
77-
_ => unimplemented!(),
77+
_ => return None,
7878
})
7979
} else {
8080
None

0 commit comments

Comments
 (0)