From 3bb2f3b29a50382d1c55c25a2b67e4816cf64f37 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Thu, 9 Feb 2017 12:28:37 +0200 Subject: [PATCH] net: tests: Unref net_buf using net_nbuf_unref Using net_buf_unref() technically works but debugging the network buffer allocations is more difficult if done like that. Change-Id: Ieaa0978aa69e2f0baa924fe842ca1f116c348ef1 Signed-off-by: Ravi kumar Veeramally --- tests/net/ieee802154/l2/src/ieee802154_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/net/ieee802154/l2/src/ieee802154_test.c b/tests/net/ieee802154/l2/src/ieee802154_test.c index 8bbdd485929..ca6a50c7d3f 100644 --- a/tests/net/ieee802154/l2/src/ieee802154_test.c +++ b/tests/net/ieee802154/l2/src/ieee802154_test.c @@ -163,12 +163,12 @@ static inline int test_ns_sending(struct ieee802154_pkt_test *t) if (!ieee802154_validate_frame(net_nbuf_ll(current_buf), net_buf_frags_len(current_buf), &mpdu)) { TC_ERROR("*** Sent packet is not valid\n"); - net_buf_unref(current_buf); + net_nbuf_unref(current_buf); return TC_FAIL; } - net_buf_unref(current_buf->frags); + net_nbuf_unref(current_buf->frags); current_buf->frags = NULL; return TC_PASS; @@ -224,7 +224,7 @@ static inline int test_ack_reply(struct ieee802154_pkt_test *t) return TC_FAIL; } - net_buf_unref(current_buf->frags); + net_nbuf_unref(current_buf->frags); current_buf->frags = NULL; return TC_PASS;