[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <25A14D9CFAB7B34FB9440F90AFD35233010193E3DF@ALA-MBA.corp.ad.wrs.com>
Date: Wed, 24 Aug 2016 02:47:32 +0000
From: "Xue, Ying" <Ying.Xue@...driver.com>
To: Wei Yongjun <weiyj.lk@...il.com>,
Jon Maloy <jon.maloy@...csson.com>,
"David S. Miller" <davem@...emloft.net>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"tipc-discussion@...ts.sourceforge.net"
<tipc-discussion@...ts.sourceforge.net>
Subject: RE: [PATCH -next] tipc: use kfree_skb() instead of kfree()
Acked-by: Ying Xue <ying.xue@...driver.com>
-----Original Message-----
From: Wei Yongjun [mailto:weiyj.lk@...il.com]
Sent: Wednesday, August 24, 2016 7:01 AM
To: Jon Maloy; Xue, Ying; David S. Miller
Cc: Wei Yongjun; netdev@...r.kernel.org; tipc-discussion@...ts.sourceforge.net
Subject: [PATCH -next] tipc: use kfree_skb() instead of kfree()
From: Wei Yongjun <weiyongjun1@...wei.com>
Use kfree_skb() instead of kfree() to free sk_buff.
Fixes: 0d051bf93c06 ("tipc: make bearer packet filtering generic")
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
net/tipc/bearer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 6fc4e3c..28056fa 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -529,7 +529,7 @@ void tipc_bearer_xmit(struct net *net, u32 bearer_id,
if (likely(test_bit(0, &b->up) || msg_is_reset(buf_msg(skb))))
b->media->send_msg(net, skb, b, dst);
else
- kfree(skb);
+ kfree_skb(skb);
}
rcu_read_unlock();
}
Powered by blists - more mailing lists