svn commit: r282049 - head/sys/arm/broadcom/bcm2835

Luiz Otavio O Souza loos at FreeBSD.org
Mon Apr 27 01:36:17 UTC 2015


Author: loos
Date: Mon Apr 27 01:36:16 2015
New Revision: 282049
URL: https://svnweb.freebsd.org/changeset/base/282049

Log:
  Pass the supplied buffer length instead of a fixed size.

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c	Mon Apr 27 01:12:51 2015	(r282048)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_mbox.c	Mon Apr 27 01:36:16 2015	(r282049)
@@ -306,8 +306,7 @@ bcm2835_mbox_init_dma(device_t dev, size
 		return (NULL);
 	}
 
-	err = bus_dmamap_load(*tag, *map, buf,
-	    sizeof(struct msg_set_power_state), bcm2835_mbox_dma_cb,
+	err = bus_dmamap_load(*tag, *map, buf, len, bcm2835_mbox_dma_cb,
 	    phys, 0);
 	if (err != 0) {
 		bus_dmamem_free(*tag, buf, *map);


More information about the svn-src-all mailing list