From 9718726c931e44dd224c0c6ec8c6e1dbea793856 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 5 Feb 2014 19:09:06 +0000 Subject: [PATCH] fix incorrect variable; (hi matt) --- sys/arch/mips/mips/bus_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/mips/mips/bus_dma.c b/sys/arch/mips/mips/bus_dma.c index 5efbcfcc91e1..28e19bb1c904 100644 --- a/sys/arch/mips/mips/bus_dma.c +++ b/sys/arch/mips/mips/bus_dma.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.29 2014/02/03 19:18:59 matt Exp $ */ +/* $NetBSD: bus_dma.c,v 1.30 2014/02/05 19:09:06 christos Exp $ */ /*- * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.29 2014/02/03 19:18:59 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.30 2014/02/05 19:09:06 christos Exp $"); #define _MIPS_BUS_DMA_PRIVATE @@ -641,7 +641,7 @@ _bus_dmamap_load_raw(bus_dma_tag_t t, bus_dmamap_t map, kva = (void *)MIPS_PHYS_TO_XKPHYS_UNCACHED(segs->ds_addr); } #else - if (ds->ds_addr >= MIPS_PHYS_MASK) + if (segs->ds_addr >= MIPS_PHYS_MASK) return EFBIG; if (cached_p) { kva = (void *)MIPS_PHYS_TO_KSEG0(segs->ds_addr);