Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754391AbYJZHQ5 (ORCPT ); Sun, 26 Oct 2008 03:16:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753546AbYJZHQr (ORCPT ); Sun, 26 Oct 2008 03:16:47 -0400 Received: from ug-out-1314.google.com ([66.249.92.172]:14695 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbYJZHQq (ORCPT ); Sun, 26 Oct 2008 03:16:46 -0400 Message-ID: <4904195F.1050508@larces.uece.br> Date: Sun, 26 Oct 2008 04:16:47 -0300 From: Sergio Luis User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Dan Williams CC: libertas-dev@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [patch 2/2] libertas: free sk_buff with kfree_skb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 26 free sk_buff with kfree_skb, instead of kree Signed-off-by: Sergio Luis Cc: Dan Williams drivers/net/wireless/libertas/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c index 5749f22..079e6aa 100644 --- a/drivers/net/wireless/libertas/rx.c +++ b/drivers/net/wireless/libertas/rx.c @@ -328,7 +328,7 @@ static int process_rxed_802_11_packet(struct lbs_private *priv, lbs_deb_rx("rx err: frame received with bad length\n"); priv->stats.rx_length_errors++; ret = -EINVAL; - kfree(skb); + kfree_skb(skb); goto done; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/