Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5848338ybn; Sun, 29 Sep 2019 07:02:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5nkz4daD+/s/sAqdKNbus6Yp1oIT+h8iJBFePy6n8PP88CjkB2W9bSaQVWIL5zTg1QNC4 X-Received: by 2002:a17:906:d8a2:: with SMTP id qc2mr15528303ejb.10.1569765742529; Sun, 29 Sep 2019 07:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765742; cv=none; d=google.com; s=arc-20160816; b=cFGx4p3whkqJwU3JfaMwq1b39yjxoEwjYVVIEfGLCHjcFQbG2+MkC6eHsoP6ExSo30 8omNFqxyF+VaB842JVlFEx47hjNal7ID1qcp8kmRhYEAO1gN4dGWXqG2HUjS9W7T04+M cjQCzPKTnsvgDqxAZhnv+TKyuK27wdCmiPJrHf6+vhZHLxBFeeOz4CZcqt9Rh998+QnJ dOw2A7BxXBzfSA5vNj6qqoRH3+wg8GvA3daB2vQYHD6dmVjYdFaCgDbkwlR5zLq7XJFF ZYuUSbd7wLVZ0qpwt9Hq1RYft8lG0dj+WSdE4dgJP3OdNrcnQQy/cLD7CBNC4Qw35KHp EKXg== 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=VX4D7pw7T7iwIyLRL7hiUVyA+oWgAyW6MPpP+ablbCw=; b=xIB93MeTojxn0eYPIiq04RBGRsACN0+zhzPQH2Pp+Od+kCqlIzt7P3WGv/eEJBqf0l hohkryRx/2nDH0ux8dzqrG1q8LeIa3lxfpQIp8XE1IIOTQauRMtZ2k8SzCSHXmwFE5qF Kn2eoES8JSmizrCfadK8yFWyhKdprDqtViI5CXMx1W6kKPgh4bOSvS49QBv5e3plErMY w7/atJXF0+B355vAubwTj8pQEltIuU4TxcQKoVAK4/VjgtSieoDI356Ir+2p/diCQzk+ QW1CAdS0bfAcTKL3N5qolCtawuVKpAEb9lHnJU2ruGSl7K1rB3wrGgIteRsW/pq4dAp7 xB5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fizPgT0T; 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 b15si5312864eda.152.2019.09.29.07.01.57; Sun, 29 Sep 2019 07:02:22 -0700 (PDT) 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=fizPgT0T; 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 S1729590AbfI2N6s (ORCPT + 99 others); Sun, 29 Sep 2019 09:58:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:39650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729530AbfI2N6r (ORCPT ); Sun, 29 Sep 2019 09:58:47 -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 0AE5521906; Sun, 29 Sep 2019 13:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765526; bh=+KG8sRgP3Wm81Em5/w/DimPHknppyCnQMQyI2CmVChw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fizPgT0TZk2drue2pnIsnyKV1ZtLIeVe+kUAu7Qlkjz7WwFqBUxiIZDghnyoj2CAF 0bnTXFZW72owr7NR34pyhGf1Mig+wzBzcqaV0wHNfs9WtfBc5PxatlA5N7qxyf8+Ey 95r6mx221w4lSRiuq/Scrv+qWI5Pp5xo5zNKSd0U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Juha Aatrokoski , Shenghui Wang , Coly Li , Jens Axboe , Sasha Levin Subject: [PATCH 4.19 46/63] bcache: remove redundant LIST_HEAD(journal) from run_cache_set() Date: Sun, 29 Sep 2019 15:54:19 +0200 Message-Id: <20190929135039.656505067@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135031.382429403@linuxfoundation.org> References: <20190929135031.382429403@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: Coly Li [ Upstream commit cdca22bcbc64fc83dadb8d927df400a8d86ddabb ] Commit 95f18c9d1310 ("bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set") forgets to remove the original define of LIST_HEAD(journal), which makes the change no take effect. This patch removes redundant variable LIST_HEAD(journal) from run_cache_set(), to make Shenghui's fix working. Fixes: 95f18c9d1310 ("bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set") Reported-by: Juha Aatrokoski Cc: Shenghui Wang Signed-off-by: Coly Li Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/md/bcache/super.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index e6c7a84bb1dfd..2321643974dab 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1768,7 +1768,6 @@ static int run_cache_set(struct cache_set *c) set_gc_sectors(c); if (CACHE_SYNC(&c->sb)) { - LIST_HEAD(journal); struct bkey *k; struct jset *j; -- 2.20.1