Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4822590ybl; Wed, 22 Jan 2020 05:24:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyuVmZVGCRzdfxnT2kAPmyVXACNOhuGxoDvJip7dze19ZJupYfN53cQm74QCGSKHJA3NCQ0 X-Received: by 2002:aca:e146:: with SMTP id y67mr6478947oig.93.1579699495156; Wed, 22 Jan 2020 05:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699495; cv=none; d=google.com; s=arc-20160816; b=I1oOvWZmJ9QKCOIPCYwUxhceah+MZlB+ZOe59dDxGryMtisR0FBlFie578ObkJDC1s xZlzdRbDZVPU3AB4Rv/1zOwhRYQCIJ4mz2rdLwZCppamho4VghMw1YgH6m8HH2V4V7iV iDXKluO7oxmt1HAbI28HrlHe5jM2Z/iEsUTL174LKiIU7lF+Qo2FI0VvNDtfr/hRAy+N WG7QlM7Ww8HrUR1GdXu8sBh2wfvqYtDCesHj2CuQ7KobXLSSgmeLVxUbMl/85FwKuDsy RJ5rpL5ayxSRUt0p5UhCV1MM5PEeXjNm28ecbKjUqU9VZSrjbqWDRiyZ7I+tvoch+NZd AKzQ== 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=WXaIM+z/30IQQPb0qucsYid5BcMxsyeFpf0dP8bUcrc=; b=FeCj2wtQKmFXsnmy+liC2pSd9H8/cxO+FEPy+gvwzouarDoWwCq6PmMdfGZSgZW1xW I4V6L4FgAfB4c2ATEujIVoU9h1Ji60q15b7vKAmKbmPtz8jATRW3ByYgjpAo/SfmnOly Hft01d0IrjdZ6+3zfUqwt0YPV9e4r2opNtZJlvq5cgCzlHh0qglVLgJAEBQ3GSj/wwk8 5WBwhXgVOrO9MEJa6u1HYVrhMmOX907hvtOJx0TUmb1aAXgK55YfsIJhKHtTPvfLYOe/ qOzjl1PE3k3SsEzAmS8z/vBkzK/x++JRhFJ16L6HKVzz6aTB3akL9PUC7POZd+Wve4h7 sVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lv93rYi5; 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 d14si13915137otp.151.2020.01.22.05.24.43; Wed, 22 Jan 2020 05:24:55 -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=lv93rYi5; 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 S1730612AbgAVNWe (ORCPT + 99 others); Wed, 22 Jan 2020 08:22:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:40258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgAVNWd (ORCPT ); Wed, 22 Jan 2020 08:22:33 -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 D716A24690; Wed, 22 Jan 2020 13:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699352; bh=izB+U4VTqVzEqSWKIcuixLoto9qu8cWMY14h+CQf9gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lv93rYi5vtu6azTf45mi75PZfsC8hPVBLYaHCEKUqjAvwo+dwincbWuDNtqY/aehm HOhwp7gemWcaMT+MCwDYdh2F6U114DuqUsODQKa6GJGbJLXVIN0jaubDTb7RXFBgvx 3txxUNZ/+VXUgXC2Ogx6bFCO5UxFJnFmh5vWQRxk= 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 119/222] cfg80211: fix memory leak in nl80211_probe_mesh_link Date: Wed, 22 Jan 2020 10:28:25 +0100 Message-Id: <20200122092842.260670992@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 2a279b34169e9bbf7c240691466420aba75b4175 upstream. 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 Link: https://lore.kernel.org/r/20200108170630.33680-1-nbd@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -13787,6 +13787,8 @@ static int nl80211_probe_mesh_link(struc if (err) return err; + cfg80211_sinfo_release_content(&sinfo); + return rdev_probe_mesh_link(rdev, dev, dest, buf, len); }