From patchwork Tue Oct 6 13:52:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 51932 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n96DqckJ005350 for ; Tue, 6 Oct 2009 13:52:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932628AbZJFNo7 (ORCPT ); Tue, 6 Oct 2009 09:44:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932627AbZJFNo7 (ORCPT ); Tue, 6 Oct 2009 09:44:59 -0400 Received: from ey-out-2122.google.com ([74.125.78.24]:1904 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932626AbZJFNo6 (ORCPT ); Tue, 6 Oct 2009 09:44:58 -0400 Received: by ey-out-2122.google.com with SMTP id 4so799735eyf.19 for ; Tue, 06 Oct 2009 06:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=IHg2mx71O2xNgr+kdzqyiQYxMsMjqODTxkqlc0oNc+c=; b=LXjoTjtchqwC4jmURUL1xQ03Myi0v1E7qT5jQv/x1zb+54iVqDn90p27kcDCzPhw+5 DLjwGRkyywgq7xx+j6DNrHUfsSB9zHg7urRviZLdNMo3OiNEcgv0lcOTa9L7oPWtwoCy Af36Fflpp30/mHpM2H5cywRg9NMlAs1ltTamQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=wyMrlpHVOBmz5Qw+0SDCDINz0Qjs6ySzQZwX4F7EX0GcWmGtDyuh6orHPwBJ0qp7Yb KmcHn+IzNt7b6nFuMrm4fGDbVQjtNyvr2htMw1GpiN1AGUZEA5LfHmsFi/6cNH4rXpgZ /kaHPtZPZ8Fwr0i8iofgMN0bEHfaMB1190ONs= Received: by 10.211.146.6 with SMTP id y6mr3353281ebn.52.1254836630718; Tue, 06 Oct 2009 06:43:50 -0700 (PDT) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 24sm66769eyx.9.2009.10.06.06.43.50 (version=SSLv3 cipher=RC4-MD5); Tue, 06 Oct 2009 06:43:50 -0700 (PDT) Message-ID: <4ACB4BA3.9090406@gmail.com> Date: Tue, 06 Oct 2009 15:52:35 +0200 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Johannes Berg , linux-wireless@vger.kernel.org, Andrew Morton Subject: [PATCH] mac80211: use kfree_skb() to free struct sk_buff pointers Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/util.c b/net/mac80211/util.c index dd65643..aeb65b3 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -339,7 +339,7 @@ void ieee80211_add_pending_skb(struct ieee80211_local *local, struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); if (WARN_ON(!info->control.vif)) { - kfree(skb); + kfree_skb(skb); return; } @@ -367,7 +367,7 @@ int ieee80211_add_pending_skbs(struct ieee80211_local *local, struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); if (WARN_ON(!info->control.vif)) { - kfree(skb); + kfree_skb(skb); continue; }