Fix two typos from the last commit

This commit is contained in:
Scott Long 2003-05-26 16:59:00 +00:00
parent e2bc3704d3
commit 5cf33ce608
2 changed files with 2 additions and 2 deletions

View file

@ -647,7 +647,7 @@ nexus_dmamem_free(bus_dma_tag_t pdmat, bus_dma_tag_t ddmat, void *vaddr,
{
sparc64_dmamem_free_map(ddmat, map);
if ((size <= PAGE_SIZE))
if ((ddmat->dt_maxsize <= PAGE_SIZE))
free(vaddr, M_DEVBUF);
else {
mtx_lock(&Giant);

View file

@ -669,7 +669,7 @@ iommu_dvma_vallocseg(bus_dma_tag_t dt, struct iommu_state *is, bus_dmamap_t map,
int
iommu_dvmamem_alloc(bus_dma_tag_t pt, bus_dma_tag_t dt, struct iommu_state *is,
void **vaddr, int flags, bus_dmamap_t *mappe)
void **vaddr, int flags, bus_dmamap_t *mapp)
{
int error;