Skip to content

Commit

Permalink
Removed untrue comment from xen_bus_dma_tag_create()
Browse files Browse the repository at this point in the history
We don't leave the cleaning up of the refs array to the caller. Instead
we now do it in xen_bus_dma_tag_destroy().

We still have to trust the caller to pass the correct refs array to the
dma tag destroy. but I don't see any other way.
  • Loading branch information
Pratyush Yadav committed May 26, 2018
1 parent 4d67a86 commit f8b25ad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sys/dev/xen/grant_table/grant_table.c
Expand Up @@ -635,8 +635,6 @@ xen_bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
}
}

/* XXX Leaving cleaning up the refs array to the caller. Is it ok? */

return 0;
}

Expand Down

0 comments on commit f8b25ad

Please sign in to comment.