From patchwork Sat May 8 16:23:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97920 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 o48GNacX010796 for ; Sat, 8 May 2010 16:23:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753830Ab0EHQXf (ORCPT ); Sat, 8 May 2010 12:23:35 -0400 Received: from mail-qy0-f183.google.com ([209.85.221.183]:51222 "EHLO mail-qy0-f183.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753702Ab0EHQXf (ORCPT ); Sat, 8 May 2010 12:23:35 -0400 Received: by mail-qy0-f183.google.com with SMTP id 13so3446177qyk.1 for ; Sat, 08 May 2010 09:23:34 -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=i0+GG99QG0HNqFHy6+Q9iLPPjuG9X9PPKcfsuLAw3MY=; b=f4LV08lU7+JnG18W+ML5DxCf8N0IY5cP1mD1NcxMgDsJ89FTkNIRhQTEdB4TJ2ptEd kXN9mXf/3EKVhwDqHp7YoxnP3aV36eLNun6TRIKFe9mFADZlkKt0FyvM9K2NDDv55FNx tSfTocO4GHLA7ud1sPTjmxdSF5B8vNRm2kkn8= 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=x/oJkZ12V2D2zKjTayUJNq9tfL+QJeUF1OzAYcGcQhD36tayUoRPI5KTTr/kaDCHG5 +ASs2wlzbDg/ud/KIT2AfsPloAgn12RTrlR/Voa8JzC6i6/fEu3XU5m5zQBWZmgtWsUt 2aOvqGazwRCViQL8zfwGNV9MXKM/TcrVPN0kU= Received: by 10.229.211.204 with SMTP id gp12mr1265719qcb.59.1273335814452; Sat, 08 May 2010 09:23:34 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id g19sm2070490qcq.11.2010.05.08.09.23.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 09:23:33 -0700 (PDT) Date: Sat, 8 May 2010 18:23:20 +0200 From: Dan Carpenter To: "Luis R. Rodriguez" Cc: Jouni Malinen , Sujith Manoharan , Vasanthakumar Thiagarajan , Senthil Balasubramanian , "John W. Linville" , Vivek Natarajan , linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net Subject: [patch 4/9] ath9k/htc_drv_main: null dereference typo Message-ID: <20100508162320.GP27064@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]); Sat, 08 May 2010 16:23:37 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index f503586..e75db06 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -461,7 +461,7 @@ static int ath9k_htc_aggr_oper(struct ath9k_htc_priv *priv, struct ath_common *common = ath9k_hw_common(priv->ah); struct ath9k_htc_target_aggr aggr; struct ieee80211_sta *sta = NULL; - struct ath9k_htc_sta *ista = (struct ath9k_htc_sta *) sta->drv_priv; + struct ath9k_htc_sta *ista; int ret = 0; u8 cmd_rsp;