From patchwork Sat Oct 21 15:48:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Greear X-Patchwork-Id: 736889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 678EEC001E0 for ; Sat, 21 Oct 2023 15:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbjJUPsk (ORCPT ); Sat, 21 Oct 2023 11:48:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJUPsj (ORCPT ); Sat, 21 Oct 2023 11:48:39 -0400 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30A8D135 for ; Sat, 21 Oct 2023 08:48:35 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id A5E4BC4005D for ; Sat, 21 Oct 2023 15:48:33 +0000 (UTC) Received: from ben-dt5.candelatech.com (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id 135B013C2B0; Sat, 21 Oct 2023 08:48:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 135B013C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1697903313; bh=bQSguloIhJ24I1AK7EnMYfTF5biL+kIyn8Rmpab0mkc=; h=From:To:Cc:Subject:Date:From; b=mDXQk+zjiXiWDe1PTe9BXWNmVTQ1zpXXCLWS8jIyqEeiUsdd+R6KRVYe4pwJzZCe8 s2AtmCnC61mWF5b60RckehD3mlhPyK/Ma8BEhOfGTs/uXgz7jgD+81ngGqZpKDfpxZ kI4QYv57Xd/2nyD7GhbKJXRG7p++LAR40PHupriM= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH] wifi: wireless: Fix bad memory passed in inform_single_bss_data. Date: Sat, 21 Oct 2023 08:48:27 -0700 Message-Id: <20231021154827.1142734-1-greearb@candelatech.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-MDID: 1697903314-YN1PqJ5r4uRI X-MDID-O: us5; ut7; 1697903314; YN1PqJ5r4uRI; ; f7146c1849a4b08a52804beb1c1cdf45 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ben Greear The sins of similar variable names and passing void pointers are seen again in wireless-next tree. Wrong data was passed into the rdev_inform_bss method causing crashes. Signed-off-by: Ben Greear --- net/wireless/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 7f8e831ef1dc..52b048675cc7 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -2155,7 +2155,7 @@ cfg80211_inform_single_bss_data(struct wiphy *wiphy, if (!res) goto drop; - rdev_inform_bss(rdev, &res->pub, ies, data->drv_data); + rdev_inform_bss(rdev, &res->pub, ies, drv_data->drv_data); if (data->bss_source == BSS_SOURCE_MBSSID) { /* this is a nontransmitting bss, we need to add it to