From patchwork Sat Jan 9 08:41:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 71904 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o098gSoE021447 for ; Sat, 9 Jan 2010 08:42:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641Ab0AIIm0 (ORCPT ); Sat, 9 Jan 2010 03:42:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751545Ab0AIIm0 (ORCPT ); Sat, 9 Jan 2010 03:42:26 -0500 Received: from mail-ew0-f214.google.com ([209.85.219.214]:60192 "EHLO mail-ew0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484Ab0AIImZ (ORCPT ); Sat, 9 Jan 2010 03:42:25 -0500 Received: by ewy6 with SMTP id 6so19724043ewy.29 for ; Sat, 09 Jan 2010 00:42:23 -0800 (PST) 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=C0Zp3J4t6h0uiOO+5DL3lWuSsGSTcq8l8rzXdylv9N4=; b=r65eQZzL3yOT9luLNTAZm/5zg87QfFT6QjZ7sj5kpFrCbtvbxYOQ7rbru9wHVAxdnS /c+gBi9MI9Re/MQ67vvPAUtcHFv7ydZOsMB6ndFWV8WAMTM0EMwNt1k4Ohon5/EQhDNG tG4viY3z6hhKdYDO4RnUuqtGEaYM/7oQwVCZs= 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=mjQaiMgIVgZWjiVKWUjNOZA7uuUFnxJ8jhnHSqDNNfvpIr8/PClw15Lw83j3qfN9/W 5qzWfgV0NufXRlp7Yfef4qVAuLkq9suL09PKRTtFJnVasXzxOEjLp91tS4QBmgk8OHII /vZVIbZ+VHtSDJ8iyTeMaM2/cxvKmyRzrqcKc= Received: by 10.213.109.201 with SMTP id k9mr437575ebp.87.1263026543566; Sat, 09 Jan 2010 00:42:23 -0800 (PST) Received: from bicker ([196.202.213.104]) by mx.google.com with ESMTPS id 16sm3825585ewy.6.2010.01.09.00.42.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Jan 2010 00:42:22 -0800 (PST) Date: Sat, 9 Jan 2010 11:41:48 +0300 From: Dan Carpenter To: Zhu Yi Cc: Reinette Chatre , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org Subject: [patch] iwlwifi: silence buffer overflow warning Message-ID: <20100109084147.GB7840@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 --- orig/drivers/net/wireless/iwlwifi/iwl-4965.c 2010-01-03 11:02:42.000000000 +0300 +++ devel/drivers/net/wireless/iwlwifi/iwl-4965.c 2010-01-06 00:27:00.000000000 +0300 @@ -1961,7 +1961,7 @@ static void iwl4965_rx_reply_tx(struct i struct ieee80211_tx_info *info; struct iwl4965_tx_resp *tx_resp = (void *)&pkt->u.raw[0]; u32 status = le32_to_cpu(tx_resp->u.status); - int tid = MAX_TID_COUNT; + int uninitialized_var(tid); int sta_id; int freed; u8 *qc = NULL;