aboutsummaryrefslogtreecommitdiff
path: root/stand/uboot
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2020-01-13 20:02:27 +0000
committerToomas Soome <tsoome@FreeBSD.org>2020-01-13 20:02:27 +0000
commitaaeffe5b7064536dc7f4ea75a58125ec69d2706b (patch)
treedd14cb9ff55c6914138015d0d273e069e241719e /stand/uboot
parent5248d3b1b2272f9ae392a4eda3cc6859a5d65cda (diff)
downloadsrc-aaeffe5b7064536dc7f4ea75a58125ec69d2706b.tar.gz
src-aaeffe5b7064536dc7f4ea75a58125ec69d2706b.zip
Notes
Diffstat (limited to 'stand/uboot')
-rw-r--r--stand/uboot/lib/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/uboot/lib/net.c b/stand/uboot/lib/net.c
index 852faa794ca1..2e1b9ab4caa4 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 = memalign(4, rlen + ETHER_ALIGN);
+ buf = malloc(rlen + ETHER_ALIGN);
if (buf == NULL)
return (-1);
memcpy(buf + ETHER_ALIGN, sc->sc_rxbuf, rlen);