mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: server: check buf is some when returning mem
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
46f340324d
commit
ab0c7d3b32
1 changed files with 1 additions and 1 deletions
|
|
@ -589,7 +589,7 @@ impl Server {
|
|||
|
||||
// Sanity check the specified address was correct, and matches what we
|
||||
// had cached.
|
||||
if is_memory && cfg!(baremetal) {
|
||||
if is_memory && cfg!(baremetal) && buf.is_some() {
|
||||
let buf = buf.expect("memory message expected but no buffer passed!");
|
||||
if server_addr != buf.as_ptr() as usize || len != buf.len() {
|
||||
// klog!("Memory is attached but the returned buffer doesn't match (len: {} vs {}), buf addr: {:08x} vs {:08x}", len, buf.len(), server_addr, buf.as_ptr() as usize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue