mirror of
https://github.com/proski/madwifi
synced 2024-11-26 00:09:46 +03:00
Uninstall skb debug destructor when skb is passed up
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2970 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
9d7916a961
commit
573cc60660
@ -332,10 +332,10 @@ untrack_skb(struct sk_buff *skb, int users_adjustment,
|
|||||||
atomic_dec(&skb_total_counter);
|
atomic_dec(&skb_total_counter);
|
||||||
atomic_dec(&skb_refs_counter);
|
atomic_dec(&skb_refs_counter);
|
||||||
SKB_CB(skb)->tracked = 0;
|
SKB_CB(skb)->tracked = 0;
|
||||||
/* Install our debug destructor, chaining to the original... */
|
/* Uninstall our debug destructor, restoring any original... */
|
||||||
if (skb->destructor != skb_destructor) {
|
if (skb->destructor == skb_destructor) {
|
||||||
SKB_CB(skb)->next_destructor = skb->destructor;
|
skb->destructor = SKB_CB(skb)->next_destructor;
|
||||||
skb->destructor = skb_destructor;
|
SKB_CB(skb)->next_destructor = NULL;
|
||||||
}
|
}
|
||||||
print_skb_trackchange_message(skb, users_adjustment,
|
print_skb_trackchange_message(skb, users_adjustment,
|
||||||
func1, line1, func2, line2,
|
func1, line1, func2, line2,
|
||||||
|
Loading…
Reference in New Issue
Block a user