Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5625080ybi; Tue, 28 May 2019 16:37:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA9L4UqCDfcs9fH5id7zhKWkFV+TvTFLSCx2Ui7fogtbWekonZtXiOYyTpdVoQqvAupBtX X-Received: by 2002:a17:90a:8089:: with SMTP id c9mr8572115pjn.68.1559086677352; Tue, 28 May 2019 16:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559086677; cv=none; d=google.com; s=arc-20160816; b=fq+GmuhcNOh1fr8jl3+MIeDr+uW2YlvkMxHx56S4iyQyXAZWRMlickmKbag+LFlwAU lMZc5tBewkuyYEqEBgoILoZTnzkCKWjdaSaMw9w8igPtfB+0WpgCLg1zA1shRWwVSHT/ JQIiHmbMjhLdgerEKRlD0LtjB/1lA5NZc0bsII9hh0RRlAFVnYlQQ9575LHOSWgStOrH DyY2C5qTAxMrxhOnhAdVKSkDJrmbspqrQP37ToD76/1AFjbuRfqS8jE0P5gSlsb3IE6i H+IpmZixCIplfbPUOVk31gB78gqidRmts+jEDnrjDlpjKyFGruI1ESU8L1eaz51naRXT F6VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=DvZofd50vN0xyYXZVEzBpOHA4ko85ACz02ej4ezjl/Q=; b=PdohC1SSJktk4eKE6Up9KoldLk0KQrUCappQtmxGJNNoLLakkaNKUyuFh/+AJqt4We 1lcYWYnLOj6izn1WwmeJjWP2Vipo1TZGirXutzBMHnld+bDLUdUrsmBDK1mka3k/o2Cp euwPOOVBip6eEvXjZRk/87vQstLLpulj2NkKJFMsNcNS1QT76TOlL90hmeV/EzynJcC1 w1iCkXWDM5vVPdzWcYdTIZrnMyCBTKUDwae19A/K1mkOpTcJiYVjlXkNLlg6ht8k0fCw ESRUZgsoJNHEmtQYdtKpKaEziWKmyxSG6xgmdmsNO2XetD48S9C9x9uh/Hl06XVG26KI nbRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VlfwZ5qZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=QegUidA5; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f64si24365485plf.128.2019.05.28.16.37.28; Tue, 28 May 2019 16:37:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VlfwZ5qZ; dkim=pass header.i=@codeaurora.org header.s=default header.b=QegUidA5; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726943AbfE1XgY (ORCPT + 99 others); Tue, 28 May 2019 19:36:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50406 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbfE1XgX (ORCPT ); Tue, 28 May 2019 19:36:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 370626087F; Tue, 28 May 2019 23:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559086583; bh=SAziLiwc/zmzv4vvBRkWvufiGXRFXuS8IJknu7nOAlE=; h=From:To:Cc:Subject:Date:From; b=VlfwZ5qZ514xVQ/8VRxuauNatgdOoLeR5QOJhZQyyVa69ZpMuRwDJbMUmRZvB7i8X L70FTkP9mInzE+Dae7sK34YOpojDSclYg6jGK5Hke2UoJQjVEc1M71+3QkofXdCwS+ vWy1bqoBnXLalRr29Bh+SdpsrYsR3z+5/TCKn5mM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from pradeepc2-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9A08660795; Tue, 28 May 2019 23:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559086582; bh=SAziLiwc/zmzv4vvBRkWvufiGXRFXuS8IJknu7nOAlE=; h=From:To:Cc:Subject:Date:From; b=QegUidA5+G4KuPHlYOwinlgFIQ7sAYQfjzq/Wbh+O2fYqjG+7bLVdVOE4p9ndAx+J ym6i/H3T3ISjztH6CTL0qAkvmeNAGNLuMNlFbTMG5NhZTBlt2fuFeXhLz3y/gAaQY1 3M16PPxG0YgSXM5O73qMTVkMVVT5/ZtJrsK8rbOE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9A08660795 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Pradeep Kumar Chitrapu Subject: [PATCH] mac80211: free peer keys before vif down in mesh Date: Tue, 28 May 2019 16:36:16 -0700 Message-Id: <1559086576-27560-1-git-send-email-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.1.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org freeing peer keys after vif down is resulting in peer key uninstall to fail due to interface lookup failure. so fix that. Signed-off-by: Pradeep Kumar Chitrapu --- net/mac80211/mesh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 766e5e5bab8a..bd68f5a87b26 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -929,6 +929,7 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) /* flush STAs and mpaths on this iface */ sta_info_flush(sdata); + ieee80211_free_keys(sdata, true); mesh_path_flush_by_iface(sdata); /* stop the beacon */ -- 2.1.2