Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp990618ybl; Wed, 8 Jan 2020 09:07:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzkkEvWUN1FqjLljjwkGXflEvHZoiAVIXJA4i0aNfOuljELVgo40X4hx+/YmIsi0f9Nc4M/ X-Received: by 2002:aca:ac88:: with SMTP id v130mr3664698oie.123.1578503264140; Wed, 08 Jan 2020 09:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578503264; cv=none; d=google.com; s=arc-20160816; b=x0J7xWsXsumCDSaDR1yA5FSg9/9Ruah3tNj1IOkyyhcG8kfjOw9PhT6z0sD1R2bIKZ pqJhbdqolAIOz18XxMOblpHUsGYdSGI70yGxxSd/OALVXSYngXrgphYNeJJ5/3uYMTL+ 9fr+CAMWb/8rDYsktPzV+f7ucnydA68CUrl5QiGFzzLSQqug0NSVkPu4JPAEgF8TBLjj I66q1+BbsO+cQHeERBJXsmlv2dspJM/68EeokcU88DtJFvtguDZFQuVSWb7Ab4E6Y6cC o0z3+UGtsD8J0klMEPbTy1lPEWL5yErXl2bEmAWFhmQ+rlYat+BCCJZrYT4DW0ms7Ino ASBg== 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=38SI0OWwuUqT0gGsBOu+go89uE3cghIj39aRp31c7Ic=; b=l1cYTMwunafo1PfiSOARGy6hJ2eGh4YGDKDDcywwAjX0QIv/qqzeZnLdQ6trvkTb5z ZYLFavnCr540mRy/NwLXdZPo3t64bgqiP80fPP4/khrGUb5eMHzFiI4v4zjDBQkmxHBR Dn1UXKoz5Du8tet1uPY8JgGeRPBVPrv3KjqY2fUqiuPiQ1zwDjDaZNbt1j3Q3OXGffO5 kzbtuTedw+w8FSTPgAkKa5GI7fPfLuhI2XsbtmVMo7vNgImKrJjTwfGrt41imCbI7j0K 2Edt3WikkEyxZUcU4Iy7m70civFJ1YD9Ybq7wtveM96/A5v/ZTSYSyheJIiM9qNnuJFg kYmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Y62P9UaK; 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 d6si1983493otq.41.2020.01.08.09.07.19; Wed, 08 Jan 2020 09:07:44 -0800 (PST) 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=fail header.i=@nbd.name header.s=20160729 header.b=Y62P9UaK; 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 S1729639AbgAHRGe (ORCPT + 99 others); Wed, 8 Jan 2020 12:06:34 -0500 Received: from nbd.name ([46.4.11.11]:36460 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729625AbgAHRGd (ORCPT ); Wed, 8 Jan 2020 12:06:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=38SI0OWwuUqT0gGsBOu+go89uE3cghIj39aRp31c7Ic=; b=Y62P9UaK8x62GUPQ0D6MOVUqR/ 1TKbxPW0mJAfoJC9jveJE6+Qek28jf7RbzhrrQ7+Ydxu84jJi3s2e5f30hTfUGtty1HPUvJXLGGBP YCykpV9wSGmuFWVXv2vVhOGfENXx4jWT55MgsdANYUUQK3UHRoICqZgeYhpPt2EujeTE=; Received: from [217.114.218.21] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipEmt-0008CQ-Or; Wed, 08 Jan 2020 18:06:31 +0100 Received: by maeck.local (Postfix, from userid 501) id 05C33770B712; Wed, 8 Jan 2020 18:06:30 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH 5.5 1/2] cfg80211: fix memory leak in nl80211_probe_mesh_link Date: Wed, 8 Jan 2020 18:06:29 +0100 Message-Id: <20200108170630.33680-1-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 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 The per-tid statistics need to be released after the call to rdev_get_station Cc: stable@vger.kernel.org Fixes: 5ab92e7fe49a ("cfg80211: add support to probe unexercised mesh link") Signed-off-by: Felix Fietkau --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index da5262b2298b..73e1430c7ac5 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -13796,6 +13796,8 @@ static int nl80211_probe_mesh_link(struct sk_buff *skb, struct genl_info *info) if (err) return err; + cfg80211_sinfo_release_content(&sinfo); + return rdev_probe_mesh_link(rdev, dev, dest, buf, len); } -- 2.24.0