Pass the supplied buffer length instead of a fixed size.
This commit is contained in:
parent
a9b9f6b6c6
commit
723af368a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282049
@ -306,8 +306,7 @@ bcm2835_mbox_init_dma(device_t dev, size_t len, bus_dma_tag_t *tag,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user