diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2020-01-13 18:22:54 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2020-01-13 18:22:54 +0000 |
commit | 659bf32dfc595b6cd6aeda7f05cb57872c64d2d1 (patch) | |
tree | 41d2ae5bf29eaef2c496549fde0049ac3d6d63cc /stand/uboot | |
parent | 6e6161d2208effcba45f3717cddff8d3e3867758 (diff) | |
download | src-test2-659bf32dfc595b6cd6aeda7f05cb57872c64d2d1.tar.gz src-test2-659bf32dfc595b6cd6aeda7f05cb57872c64d2d1.zip |
Notes
Diffstat (limited to 'stand/uboot')
-rw-r--r-- | stand/uboot/lib/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/uboot/lib/net.c b/stand/uboot/lib/net.c index 2e1b9ab4caa4..852faa794ca1 100644 --- a/stand/uboot/lib/net.c +++ b/stand/uboot/lib/net.c @@ -302,7 +302,7 @@ net_get(struct iodesc *desc, void **pkt, time_t timeout) #endif if (rlen > 0) { - buf = malloc(rlen + ETHER_ALIGN); + buf = memalign(4, rlen + ETHER_ALIGN); if (buf == NULL) return (-1); memcpy(buf + ETHER_ALIGN, sc->sc_rxbuf, rlen); |