1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-09 13:42:56 +00:00

Fix compilation with INVARIANTS.

This commit is contained in:
Olivier Houchard 2004-12-11 14:46:52 +00:00
parent 8693799f41
commit fd4d461166
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138683

View File

@ -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;