Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4879936pjb; Mon, 27 Jul 2020 07:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIJ+pYfy5nJkz4y1WywTcoq1RGBsUb8sUIGTt+EQRXeQNCGPUTWNmIaKulIc08nriGlhuU X-Received: by 2002:a17:907:204e:: with SMTP id pg14mr1521779ejb.324.1595860095887; Mon, 27 Jul 2020 07:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860095; cv=none; d=google.com; s=arc-20160816; b=W6g8xpRe+JD/mxcOf2QXtlA2j4/zFVQ1PyHV+JaUbrSZiO6izjlvlaFuTgTzx7OeOb atswU91XMzs+Kt0bE8NiLO8MLpARHgYi0e+gXLc2vyVodIBhHIqKjvPLhJzifxb+9kTd W7hJR7pYxyhcxbyVrY82xcpZqpPhyom+DWGtvKO8UJrwNBKcclq4WTR9pHEiSZa98Q9A LsuchIp7zjZlKIzXU8nllPOdQlry+XjtDRHnbQOncMhlSGqny2toW4hozYPbUWL4D1f8 MP4STBxtAaHLl2s+eE4ftYuuGSFMOEtS6ThDcWj8Dz5XwaMKsi80jZeq5yygpiSWB3bH 3/BA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nxXOjyBK5PZ6f7hAMgwtT74AAKVBXL8HuyHuyisooss=; b=sZ5TdimMZwxVCP5vRDKmEIFXs9FklD4hDyR4I7IBpGTw6VYtg0CL41nRt3oTAjNwT7 ZhaP2uQgnf7rJjq119d/cMb5Lzm9ELQY4OZyv3y/6Knpf8LbUTw5QrZaVAZsVgO7LaI0 tDVGYRaqXSIH4+gygEd0yyeTqKguXlbMSqDDfo9v8aO2KSxK5BOLA5PeV4EBCFg1pC/i VyHcVBlbMdTefcaWN3otcR3cihEHM0UuAXipt3o8j6DBqxpviesQZDDViajXb4sA9hrr EVL92Hxtd1of3EFBdpeK/K6LbtGyn8mavZXh+d9zTq7X2I2bgKWhTIha3QfuLs67LJbv q8bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e78VSsRY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si3073689edu.590.2020.07.27.07.27.54; Mon, 27 Jul 2020 07:28:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=e78VSsRY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732648AbgG0O0l (ORCPT + 99 others); Mon, 27 Jul 2020 10:26:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:56906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732641AbgG0O0i (ORCPT ); Mon, 27 Jul 2020 10:26:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE8BF207FC; Mon, 27 Jul 2020 14:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859998; bh=sDEnlAlhFB/QP2r2vRPVPqWMEAb7Ot7M+9SnlkSmfxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e78VSsRYaLiK5vdgpcVdY609b5dBXcWU4bLWablPAQDyHjs3KSevdJxRgZsqutnUf i+FjVnj1wFBrDX2peyVipnw7fQulJbfD/tzbfsAefqGLmhBLAScOlfKywnv5E57cmH 9lzrtY0BPsyy9PmbWZeXLRFLtX92q2YdorzjCmzc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark ODonovan , Roman Mamedov , =?UTF-8?q?Viktor=20J=C3=A4gersk=C3=BCpper?= , Kalle Valo Subject: [PATCH 5.7 179/179] ath9k: Fix regression with Atheros 9271 Date: Mon, 27 Jul 2020 16:05:54 +0200 Message-Id: <20200727134941.378417691@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark O'Donovan commit 92f53e2fda8bb9a559ad61d57bfb397ce67ed0ab upstream. 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") Link: https://bugzilla.kernel.org/show_bug.cgi?id=208251 Signed-off-by: Mark O'Donovan Reported-by: Roman Mamedov Tested-by: Viktor Jägersküpper Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200711043324.8079-1-shiftee@posteo.net Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- 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(stru 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: