From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752359AbZEDSib (ORCPT ); Mon, 4 May 2009 14:38:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751995AbZEDSiU (ORCPT ); Mon, 4 May 2009 14:38:20 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:2650 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbZEDSiT (ORCPT ); Mon, 4 May 2009 14:38:19 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FWdQYzW6zIpjqKoq2XR4yAg2dkf1WGxa9ynLbtIN6+SVBLyD6rw+/KNh+BK6u0O1wR 3sOTEGOPEXxxcmzlOJr1JneLHwqMpj0DxA78B29hWemm+eXu9VgJ8tnR0dVt0QGPhjz2 1s9j99hcQD+5hbbIBqabEt7qwVHnowxGnCioQ= MIME-Version: 1.0 In-Reply-To: <1241453096-8517-1-git-send-email-jirislaby@gmail.com> References: <1241453096-8517-1-git-send-email-jirislaby@gmail.com> From: "Luis R. Rodriguez" Date: Mon, 4 May 2009 11:38:04 -0700 Message-ID: <43e72e890905041138q4bf43405u7fca133dac991dc4@mail.gmail.com> Subject: Re: [PATCH 1/2] mac80211: minstrel, fix memory corruption To: Jiri Slaby Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Felix Fietkau Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 4, 2009 at 9:04 AM, Jiri Slaby wrote: > minstrel doesn't count max rate count in fact, since it doesn't use > a loop variable `i' and hence allocs space only for bitrates found in > the first band. > > Fix it by involving the `i' as an index so that it traverses all the > bands now and finds the real max bitrate count. > > Signed-off-by: Jiri Slaby > Cc: Felix Fietkau Cc: stable@kernel.org Luis