Thread (3 messages) 3 messages, 2 authors, 2008-05-27

Re: [PATCH 2.6.26-rc4] fix double call of kfree_skb in net/llc/llc_sap.c

From: Dmitry Petukhov <hidden>
Date: 2008-05-27 08:00:13

2008/5/27 Wei Yongjun [off-list ref]:
Not correct, since kfree_skb(skb) is used after skb_get(skb).

First, it used skb_get inc the users counter, and then, kfree_skb will dec
the users count, not do the real free.
The problem is what there will be one extra call to kfree_skb without
this return, and it will decrease the counter one extra time then.

//sorry for re-post, forgot to CC the list
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help