summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-14 18:02:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-15 18:29:53 +0200
commit065feea9bed491fbee2595becd4b933a5af66be7 (patch)
tree0676899d691f2713b8898d714888c9e358620354 /net
parent1336fc9c438ae83e4baaf6661c5a531632caf47d (diff)
downloadbarebox-065feea9bed491fbee2595becd4b933a5af66be7.tar.gz
barebox-065feea9bed491fbee2595becd4b933a5af66be7.tar.xz
net: use net_alloc_packet to allocate packet
Was missing in net_init and net_new. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index 046ddd4077..c6bc8a15f4 100644
--- a/net/net.c
+++ b/net/net.c
@@ -378,7 +378,7 @@ static struct net_connection *net_new(IPaddr_t dest, rx_handler_f *handler,
return ERR_PTR(-ENETDOWN);
con = xzalloc(sizeof(*con));
- con->packet = xmemalign(32, PKTSIZE);
+ con->packet = net_alloc_packet();
con->priv = ctx;
memset(con->packet, 0, PKTSIZE);
@@ -673,7 +673,7 @@ static int net_init(void)
int i;
for (i = 0; i < PKTBUFSRX; i++)
- NetRxPackets[i] = xmemalign(32, PKTSIZE);
+ NetRxPackets[i] = net_alloc_packet();
return 0;
}