Commit 79051932 authored by Charles Jacobsen's avatar Charles Jacobsen Committed by Vikram Narayanan
Browse files

pmfs: mount: Fix microkernel user after free error.

Needed to null out cnode metadata.
parent 6a39f5be
......@@ -42,10 +42,12 @@ static int mem_object_revoke(struct cspace *cspace, struct cnode *cnode,
__lcd_do_unmap_memory_object(cap_cspace_getowner(cspace), mo, m);
* Free metadata
* Free metadata and null it
if (m)
cap_cnode_set_metadata(cnode, NULL);
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment