Module Name:    src
Committed By:   jmcneill
Date:           Sat Jan 12 18:53:22 UTC 2013

Modified Files:
        src/sys/dev/usb: dwc_otg.c

Log Message:
correct a bad length parameter for a bus_space_barrier call (takes number of 
bytes, not number of dwords)


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/usb/dwc_otg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/dwc_otg.c
diff -u src/sys/dev/usb/dwc_otg.c:1.16 src/sys/dev/usb/dwc_otg.c:1.17
--- src/sys/dev/usb/dwc_otg.c:1.16	Sat Jan 12 18:37:09 2013
+++ src/sys/dev/usb/dwc_otg.c	Sat Jan 12 18:53:21 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: dwc_otg.c,v 1.16 2013/01/12 18:37:09 jmcneill Exp $	*/
+/*	$NetBSD: dwc_otg.c,v 1.17 2013/01/12 18:53:21 jmcneill Exp $	*/
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.16 2013/01/12 18:37:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.17 2013/01/12 18:53:21 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3093,7 +3093,7 @@ send_pkt_sync:
 		    DOTG_DFIFO(td->channel),
 		    sc->sc_tx_bounce_buffer, (count + 3) / 4);
  		bus_space_barrier(sc->sc_iot, sc->sc_ioh,
-		    DOTG_DFIFO(td->channel), (count + 3) /4,
+		    DOTG_DFIFO(td->channel), ((count + 3) / 4) * 4,
 		    BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE);
 	}
 

Reply via email to