Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1059977ybt; Fri, 10 Jul 2020 21:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/aSgUaG/W51BVc3EO6o8xwydfxI8BrDSnpPwK4UAs3qSF6oC7ZvdboY/EhBDxbDnXZ2x0 X-Received: by 2002:a17:906:3b44:: with SMTP id h4mr5993617ejf.89.1594442179228; Fri, 10 Jul 2020 21:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594442179; cv=none; d=google.com; s=arc-20160816; b=PJXp3H0QTgRxyGmPylNaoWoPBtGNbwlStavBEULin8m4cu4q/Sdr8vyD3DQFvCdQcr qjtYcOFxO0hk1kLhkfPDxWhSygCkXnBzi1Z9QemZS9B0mq1FWc2VrcEkX+kweILnJN0V rJdfH40r7q9p++PT2Trq4lnxYRfw2BswgJuNc49cThzHAFtTxo5KfzI8wOuC4xf75M/V RsqWXb2pT53r5AQRSjrRNHsdpRIyXLjCflIbOnDbCN31MHoyq/6oCJ2wfUXvvTWd9BQd BI8eLBIzabRTlp+wXhYN8vS8ss/JRxELcQxx1oGJ0PiORE86a8AzSL0mRz9PNq1n6YCx 7pQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8Ij0mAhRr5md+hBfV1NHs5Pk7aYLdwFFGKp1Ue430r4=; b=CUnDeSxeVadTrsrqdO/NPk6rUWn46JgtsuhiNdUimTxrZQH5ElGMsn9EnvrjnAzNXE NaSEuObm9xixaeZv0JGLxlfTOUkBCaAMPxqyiEB9wZ/TjwxHwaUcQMLmh86BJmyDoEZq ttbueaKAjbg7dTPfZxB0BG1x/W55/6VIhdRfkomgdXsN6nnCS14tpbEEW8D8z9uboVJZ DNK47torXzwETy1tbwNcHpD3kR023bgP8UJJsf0uGlH2o/zonNG6pkRy2QLEGwwEkrMY jEE8TI2/AmMboSUCqn/x196+u/ohXkuqeeyCEp3yHx7ww969u7jQhJnDnkjUXYbrthG8 ybqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=iw9hzNEq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si4967490eji.614.2020.07.10.21.35.38; Fri, 10 Jul 2020 21:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=iw9hzNEq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbgGKEf1 (ORCPT + 99 others); Sat, 11 Jul 2020 00:35:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59486 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgGKEf0 (ORCPT ); Sat, 11 Jul 2020 00:35:26 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7AC3416005C for ; Sat, 11 Jul 2020 06:35:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1594442124; bh=0ctE+bpyS5tnIfYE4wskqtGvHRlRDTGqPaJ9OIOnNDs=; h=From:To:Cc:Subject:Date:From; b=iw9hzNEqM378iP/dgqv3UEMUY8UKvKbO8PGhpKn/vCH/gAGiBnLhl9F2UUImhQWXx lzGvjm4NeQxMZSyI7LCtj9auKjKc2Sefj1sloddDstVfrO9BEkdicf/J026++wGCq1 GFVB5OQthsM9QHIxfpg2loi76RSvemF7wANCPmpJ0Cr/1R3rptC/BW5t0Lua4KDhVK Oxy6KXi3QZEYrFOeHD3aGh53ptIwG3Dy5R0RoWoGYQRw+hfGRWhSqoFiFdmYQ84xAM zzOACfNMs1F240J4FOdlzD6mOZ3tbIIj14LFRF1EXuVkdS4ZLSunP4QbXek/5aIwIF 1Fse7GagYQnzw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4B3cXV2fc9z6tmH; Sat, 11 Jul 2020 06:35:22 +0200 (CEST) From: Mark O'Donovan To: linux-wireless@vger.kernel.org Cc: kvalo@codeaurora.org, jaegerskuepper@freenet.de, hqjagain@gmail.com, ath9k-devel@qca.qualcomm.com, davem@davemloft.net, kuba@kernel.org, Mark O'Donovan Subject: [PATCH 1/1] ath9k: Fix regression with Atheros 9271 Date: Sat, 11 Jul 2020 05:33:24 +0100 Message-Id: <20200711043324.8079-1-shiftee@posteo.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This fix allows ath9k_htc modules to connect to WLAN once again. Fixes: 2bbcaaee1fcb (ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb ) https://bugzilla.kernel.org/show_bug.cgi?id=208251 Signed-off-by: Mark O'Donovan --- drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index 4ed21dad6a8e..3f563e02d17d 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -733,11 +733,13 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb) return; } + rx_buf->skb = nskb; + usb_fill_int_urb(urb, hif_dev->udev, usb_rcvintpipe(hif_dev->udev, USB_REG_IN_PIPE), nskb->data, MAX_REG_IN_BUF_SIZE, - ath9k_hif_usb_reg_in_cb, nskb, 1); + ath9k_hif_usb_reg_in_cb, rx_buf, 1); } resubmit: -- 2.25.1