From patchwork Thu Jul 22 11:14:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 113561 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6MBEuXX012357 for ; Thu, 22 Jul 2010 11:14:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758792Ab0GVLOx (ORCPT ); Thu, 22 Jul 2010 07:14:53 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:58993 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754037Ab0GVLOv (ORCPT ); Thu, 22 Jul 2010 07:14:51 -0400 Received: by fxm14 with SMTP id 14so4185452fxm.19 for ; Thu, 22 Jul 2010 04:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=lyfefeV4gSH9o73wjDcaHM+rEzqLzvMzjMiGww5eI4M=; b=bM1lhCjhpSO/TJE0bZ5AZRtKeYdyu7Iw61WFRLWoQVawGaofn90icJl0gKm6WkBUpX XsO+uMmc10lkPwLkkN2FDR141/fFHteFh/BRm05jr0/cBjDnwzglW+AgfQkTUZzs/Xt6 KwYptxvE4+4D86ANsmV1BcUdC3fG8kloWMNEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=lfKRIwn6CKJEYigznLK1IC5+LPyXkm5QzKzvb7yU877xo5Y7AhVV/KeOkesz8VcZpv Nh59ADodew0lVP24Rg/DJeySIXqOVRX3AkYw/DdpOJpwrazeiMgI+51FuME8PGh6s39c 1uHf+DF8EVUWZTLCXlaZZ3lDfWb23Di7evRsA= Received: by 10.86.68.20 with SMTP id q20mr1443749fga.36.1279797290341; Thu, 22 Jul 2010 04:14:50 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id r8sm3279670faq.34.2010.07.22.04.14.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 04:14:49 -0700 (PDT) Date: Thu, 22 Jul 2010 13:14:19 +0200 From: Dan Carpenter To: Felix Fietkau Cc: Johannes Berg , "David S. Miller" , "John W. Linville" , Ming Lei , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch net-next] mac80211: freeing the wrong variable Message-ID: <20100722111419.GC17585@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 22 Jul 2010 11:14:56 +0000 (UTC) diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index b5ace24..0ec0584 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -748,7 +748,7 @@ minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) return msp; error1: - kfree(msp->sample_table); + kfree(msp->ratelist); error: kfree(msp); return NULL;