From 5c576064e0e6826d6ed93337245730b065bbdc8a Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 7 Feb 2010 05:36:02 +0100 Subject: free delivered packets. --- libdde_linux26/include/dde26_net.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libdde_linux26/include/dde26_net.h b/libdde_linux26/include/dde26_net.h index 4545e7cc..204f37dd 100644 --- a/libdde_linux26/include/dde26_net.h +++ b/libdde_linux26/include/dde26_net.h @@ -27,8 +27,11 @@ linux_rx_callback l4dde26_register_rx_callback(linux_rx_callback cb); static inline int l4dde26_do_rx_callback(struct sk_buff *s) { if (l4dde26_rx_callback != NULL) { + int ret; skb_push(s, s->dev->hard_header_len); - return l4dde26_rx_callback(s->data, s->len, s->dev); + ret = l4dde26_rx_callback(s->data, s->len, s->dev); + dev_kfree_skb_any(s); + return ret; } return 0; -- cgit v1.2.3