From fd4d461166a37207c0584290a6fdb3db6283d58e Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Sat, 11 Dec 2004 14:46:52 +0000 Subject: [PATCH] Fix compilation with INVARIANTS. --- sys/arm/arm/busdma_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c index 5e6c1d3a3ac9..f5c13927f5d6 100644 --- a/sys/arm/arm/busdma_machdep.c +++ b/sys/arm/arm/busdma_machdep.c @@ -592,9 +592,9 @@ bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *uio, map->buffer = uio; if (uio->uio_segflg == UIO_USERSPACE) { - pmap = vmspace_pmap(uio->uio_td->td_proc->p_vmspace); - KASSERT(td != NULL, + KASSERT(uio->uio_td != NULL, ("bus_dmamap_load_uio: USERSPACE but no proc")); + pmap = vmspace_pmap(uio->uio_td->td_proc->p_vmspace); } else pmap = kernel_pmap;