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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to