Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp992159ybl; Wed, 8 Jan 2020 09:09:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzZ+jQjLkUiEMpumSQkAsvCviKldNg08hMnUjUL1n2uzX7JCS0tqBlsst/heI/wRMDjTeD2 X-Received: by 2002:a05:6830:154c:: with SMTP id l12mr4951410otp.275.1578503344311; Wed, 08 Jan 2020 09:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578503344; cv=none; d=google.com; s=arc-20160816; b=cNWlkm1Azu98/03rCqxexNTRaizx9kreIfr3KuU9egbT7/E9PdKQXMUK5/D3d6aRPi uMgRXeC5Waeqkr3VDQjQzKXyMkgLVElXYQTLXxXT2VxRf71B67/5rBh1dHbBLKMYNJfn Cfxj7RiNZwlZNXpIZg1mdknLz0xlvR8WjKUa8QY3h9bH59MTE8EqVnOXM0etWJvUTMYC S0BJMcdKF4A/vJi79dqhi/9eBdb/E1Igm2o/fY9c6q+moOTaUy9rqRk8j3cBLWeglWUp eQnOD+164sBkddyW6DM4qOnp74l+vMY4PGClEmWbR9OV8zMV8xG6pR3ONLr9CC0qssn4 Qurw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YHvMwTEucT6PMku9udp5ErJhGFDrBf/G1+2ch4qbZ7I=; b=dbqr71N5WomrUI+E6CiN1vFjyF9oJJFLc+gQxc1HCKLyzrwKgdCl6PCggsGEH9H/5D tBz63HRBev8VT1lpHpC0KWwREBw0GS6ph0UzVYuTa0FSgVdawrNLWrLxlmmm0aW8/5eA X6kg8jg9iXQ3snirGNtp82Qh9l+5PWzHXRlTJvrQfK5IQjUeQBR3APNtpEsvliI6qOnL 4yQrUUl8oPvB9NrETUd5WwxBl384n+8dJlqEjTidKtlTYlr55lNOAudyjGfaEXvpRQz1 Pc2RovAaooXNe05dNBKId+0lJMtnB4FCW6vK2GEuJVDB0byi+DuuuTA3Y+SlvOO8hqQv EqIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=MbVAnA1X; 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 l6si2159563otq.132.2020.01.08.09.08.51; Wed, 08 Jan 2020 09:09:04 -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=MbVAnA1X; 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 S1729635AbgAHRGd (ORCPT + 99 others); Wed, 8 Jan 2020 12:06:33 -0500 Received: from nbd.name ([46.4.11.11]:36458 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729544AbgAHRGd (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:References:In-Reply-To: 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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YHvMwTEucT6PMku9udp5ErJhGFDrBf/G1+2ch4qbZ7I=; b=MbVAnA1XOWMwnFAoe+kF9xs8HH k+XDVfLvtVSHv+nitawHe5NWu2UG+Up3NnR57/fKTOPl74B2vmEqfY4XmQNg+tQM33UqAprmQwQwX TeRvjE5sZlu444ZMFRf8hFg42QxsLInyRpMOnABw18pX9qkkbxP838hIFrvzE70exWz4=; 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-0008CP-Os; Wed, 08 Jan 2020 18:06:31 +0100 Received: by maeck.local (Postfix, from userid 501) id 0105B770B711; 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 2/2] cfg80211: fix memory leak in cfg80211_cqm_rssi_update Date: Wed, 8 Jan 2020 18:06:30 +0100 Message-Id: <20200108170630.33680-2-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200108170630.33680-1-nbd@nbd.name> References: <20200108170630.33680-1-nbd@nbd.name> 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: 8689c051a201 ("cfg80211: dynamically allocate per-tid stats for station info") Signed-off-by: Felix Fietkau --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 73e1430c7ac5..1e97ac5435b2 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -10843,6 +10843,7 @@ static int cfg80211_cqm_rssi_update(struct cfg80211_registered_device *rdev, if (err) return err; + cfg80211_sinfo_release_content(&sinfo); if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_BEACON_SIGNAL_AVG)) wdev->cqm_config->last_rssi_event_value = (s8) sinfo.rx_beacon_signal_avg; -- 2.24.0