Message ID | 20200824082352.641695215@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=P6ku=CC=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6500FC433DF for <stable@archiver.kernel.org>; Mon, 24 Aug 2020 09:23:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3EF862074D for <stable@archiver.kernel.org>; Mon, 24 Aug 2020 09:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598261005; bh=PvGubglU6cmFIj4jp9q0XiJbLPU4XYVuiuvBCjSn7m8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=TunkE5cF22emNfaPi35TN9PDAkCGGHBjgLxrPW+wcheTRdWGBH7lZVIfzrJhbf+59 7cFxVnQNKKaQvtbfShW5aKm61OJsmlWhw3s3NSFt8BHZyKeenAkEhwicLh/jDGkR2t y/khv/XbUszw36AxXz9dEtwPnKBFyAN/PxRtaVVY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728930AbgHXJXV (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 24 Aug 2020 05:23:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:34826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729645AbgHXIyX (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 24 Aug 2020 04:54:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 80E42207D3; Mon, 24 Aug 2020 08:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598259263; bh=PvGubglU6cmFIj4jp9q0XiJbLPU4XYVuiuvBCjSn7m8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ioAqUkNmzXlnJ3Zv70ObhIMBQoOdk4W1RpzmN/Tfh+8aLci1htE6lX3BguqmoIvrS 81dg3iSJeJPfmvEFG3ZnCffOFyBIMRD/vq86mK56T0zIE7UxUa6AF9wV/q2oBLT5by Q3tiudjMzJg+8sEARBIk0inX4jUdGYiYSK+Vwzs8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Wei Yongjun <weiyongjun1@huawei.com>, Andrew Morton <akpm@linux-foundation.org>, Chris Wilson <chris@chris-wilson.co.uk>, Al Viro <viro@zeniv.linux.org.uk>, Michael Ellerman <mpe@ellerman.id.au>, David Rientjes <rientjes@google.com>, Michel Lespinasse <walken@google.com>, Daniel Axtens <dja@axtens.net>, Thomas Gleixner <tglx@linutronix.de>, Akash Goel <akash.goel@intel.com>, Linus Torvalds <torvalds@linux-foundation.org> Subject: [PATCH 4.14 13/50] kernel/relay.c: fix memleak on destroy relay channel Date: Mon, 24 Aug 2020 10:31:14 +0200 Message-Id: <20200824082352.641695215@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200824082351.823243923@linuxfoundation.org> References: <20200824082351.823243923@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/kernel/relay.c +++ b/kernel/relay.c @@ -196,6 +196,7 @@ free_buf: static void relay_destroy_channel(struct kref *kref) { struct rchan *chan = container_of(kref, struct rchan, kref); + free_percpu(chan->buf); kfree(chan); }