diff options
Diffstat (limited to 'libdde_linux26/include/dde26_net.h')
-rw-r--r-- | libdde_linux26/include/dde26_net.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |