Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4822941ybl; Wed, 22 Jan 2020 05:25:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxxH4Cnr38PTkebGNyVNX/dCOjXjbhTc0Yxeq1XazCBXwRVIhEwRR+3ApcqqVA0+s0x8PTK X-Received: by 2002:aca:48cf:: with SMTP id v198mr6819604oia.35.1579699515784; Wed, 22 Jan 2020 05:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699515; cv=none; d=google.com; s=arc-20160816; b=dmdpPR85yRvpy7M8cg3e/FlTZth81lttpNdkLPqjAwqdLIj9N4w7PkxPVYrYJGXpyp V3kWlybxxWywtCN5dW+eVQWtTEAsV3Cp4lLzBOnyKuqIWiAffCI0aHbRPo7ohdvgcH9J Fz1WE48mJBxaJU7+udXkTWSOmKw4GZfu92ggs/20pf3CtZU1UqcBIshrQu0QlYoQau9l dIPmjRTO4sU9gb8yf5wyLIhqs9gNeHbQ0+PmOin9cOv/DGvQgbMb4jKeiHxdu9UIDjC0 N8XbWQNBTaS2NZaxmDDbo1Yq4IxPH/seFX6L2bfxMmF8kByVq6/sIGEirGQYdIdpXDVa KA6g== 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=eCraSQWtGiAqOQMFPw/is6cvvJubeGKQuQYqazUI9Kk=; b=d8SXdhPvNZwFIcWjaBHJ5KfR3qlRJCWN0+d8l2toL5hBRezHeSl35YzWiAUfmljP2R FZ288PJIm+vAwXpNZ46tEk04VdG9VvOXU6cEBpZfm2G7b1rtfL9bKlKh02xFnCRb7nab kD6U3TUAfrwXasO/UAwI9QwTJTkkT7V+B2d5DFpALwuKKVg14537b7fqxTnRbc40eRQx sXp78/tN9ai9GRvaiX3QRq1NOVz2ZF38wZFwnXvpJyMRNAzKDze5s9FgMSyztV9rdQKa IOXwXDWwnJtp1GOJtzAKOltIFPMII+y6pBXbm3Xz6yWkzB6NsU238M703v1VGFd14tMN Ausw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yM2ptP1W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k19si22789933otr.52.2020.01.22.05.25.03; Wed, 22 Jan 2020 05:25:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=yM2ptP1W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729762AbgAVNWj (ORCPT + 99 others); Wed, 22 Jan 2020 08:22:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:40364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgAVNWi (ORCPT ); Wed, 22 Jan 2020 08:22:38 -0500 Received: from localhost (unknown [84.241.205.26]) (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 71CCF24690; Wed, 22 Jan 2020 13:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699358; bh=THZTOQTBOsJRrzlwegB7sVd2vR3v8N9OdsvPhENhc5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yM2ptP1WXt38YUkHMqz5eeT6rUhN1FAtgiwv5A3hVJP+7JnRss9XSRXvv6vYoPi+E B0xjXmbtLcdFfqyMKNnPZNwULURTmX3ek1HH3sYEW6gV+fyEYPCt1T+Ec2J5ev4uTT jD+Zq1hjyS7vlwZq0t2aLiqCR4rLSF7V5zfEDyWU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Johannes Berg Subject: [PATCH 5.4 120/222] cfg80211: fix memory leak in cfg80211_cqm_rssi_update Date: Wed, 22 Jan 2020 10:28:26 +0100 Message-Id: <20200122092842.331958509@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@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: Felix Fietkau commit df16737d438f534d0cc9948c7c5158f1986c5c87 upstream. 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 Link: https://lore.kernel.org/r/20200108170630.33680-2-nbd@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -10834,6 +10834,7 @@ static int cfg80211_cqm_rssi_update(stru 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;