From patchwork Tue May 11 11:23:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 98696 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4BBNqRK004537 for ; Tue, 11 May 2010 11:23:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590Ab0EKLXv (ORCPT ); Tue, 11 May 2010 07:23:51 -0400 Received: from mail-qy0-f183.google.com ([209.85.221.183]:55430 "EHLO mail-qy0-f183.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371Ab0EKLXv (ORCPT ); Tue, 11 May 2010 07:23:51 -0400 Received: by qyk13 with SMTP id 13so7926474qyk.1 for ; Tue, 11 May 2010 04:23: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:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=C1YvF6P3iG0Sni5gmJqCRj1t1rITkJ5ryZK951DS1FY=; b=CGE3P1CuxXBXXrKHyZHlpwMnY0gG5Cs9d3Te/PmGOBPRPVD30AMpvoOnFEl4lgJw9f U/JLS3+X5HZfx7Say2ruJQR9ybasAuAOKl1R74RkevPkre+UhPda5feEfljHcRMIPdWD xf5jtuN7SR8jcNy/5BlICQuOdR41dxkG0GHLw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=AxASdbDkjRioHIkjJkGj0Jeo5T/XLMDavvIXDWgAeOLTTDI0eNKOB9xqX3tHYSOrfO rjU+C2ujC5RgXEgS2dhhY+iqZ/wETaMRZZ7G0XYkVEkPh0yTMWl3Rs+Zo6MWt4r5yzmz 3xVDaBIqdCMaArMJHy+8JzvqlHJp4WVbRp+Tc= Received: by 10.224.79.38 with SMTP id n38mr3619192qak.204.1273577029994; Tue, 11 May 2010 04:23:49 -0700 (PDT) Received: from bicker ([41.222.20.29]) by mx.google.com with ESMTPS id 22sm3942725qyk.2.2010.05.11.04.23.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 04:23:49 -0700 (PDT) Date: Tue, 11 May 2010 13:23:33 +0200 From: Dan Carpenter To: Sujith.Manoharan@atheros.com Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org Subject: Re: [PATCH 5/5] ath9k_htc: Fix array overflow Message-ID: <20100511112332.GZ27064@bicker> References: <19433.14244.829946.555964@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <19433.14244.829946.555964@gargle.gargle.HOWL> 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]); Tue, 11 May 2010 11:23:53 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c index 6a062a3..02e8e0f 100644 --- a/drivers/net/wireless/ath/ath9k/htc_hst.c +++ b/drivers/net/wireless/ath/ath9k/htc_hst.c @@ -124,7 +124,7 @@ static void htc_process_conn_rsp(struct htc_target *target, } } - if (!tmp_endpoint) + if (tepid == ENDPOINT0) return; endpoint->service_id = service_id;