Return-path: Received: from ebb05.tieto.com ([131.207.168.36]:42576 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137Ab3CVKjF (ORCPT ); Fri, 22 Mar 2013 06:39:05 -0400 Message-ID: <514C34C1.1010004@tieto.com> (sfid-20130322_113910_390414_3D79D07B) Date: Fri, 22 Mar 2013 11:38:57 +0100 From: Rymarkiewicz Waldemar MIME-Version: 1.0 To: Wei Yongjun CC: "lauro.venancio@openbossa.org" , "aloisio.almeida@openbossa.org" , "sameo@linux.intel.com" , "yongjun_wei@trendmicro.com.cn" , "linux-wireless@vger.kernel.org" , "linux-nfc@lists.01.org" Subject: Re: [linux-nfc] [PATCH] NFC: microread: use kfree_skb() instead of kfree() References: <514AF0EA.9020504@tieto.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, >> >> kfree_skb call is used internally by the kernel. A driver should use dev_kfree_skb instead, I guess. > > It seems that dev_kfree_skb() call when dev_alloc_skb() is used, and > kfree_skb() use to free skb malloced by alloc_skb(). I agree. The driver should use dev_* flavoured skb function then. Thanks, /Waldek