Skip to content
Snippets Groups Projects
Commit ce35ec3f authored by Dor Laor's avatar Dor Laor
Browse files

Fix mbuf leak

Put the right pointer into the smart pointer.
Noted by Guy
parent a2584d77
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,7 @@ namespace virtio {
//TODO: verify what the hdr_len should be
req->hdr.hdr_len = ETH_ALEN;
req->um.reset(m);
req->um.reset(m_head);
req->payload.add(mmu::virt_to_phys(static_cast<void*>(&req->hdr)), sizeof(struct virtio_net_hdr), true);
// leak for now ; req->buffer = (u8*)out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment