Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1032380ybe; Wed, 4 Sep 2019 11:26:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVsoK8Io8wuNpnC2FUziJMU9v/lyFZk+S/5zgJs7mvCxN9Ipo3E+fcPomug6jRRi6nYIFt X-Received: by 2002:a17:902:864a:: with SMTP id y10mr5715717plt.294.1567621617953; Wed, 04 Sep 2019 11:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567621617; cv=none; d=google.com; s=arc-20160816; b=vWohn+cuODQ96RnSlYObNsg7CTgBtuiwcU3Xs8rAEM6zM0xe4i8CGu7MHm16h1BB1k XUzzvy+ThqXjsALCAFkrc5MVv1Ha19fn0AzqYh98YyGOsR20JdptazhsxvRp8a3jHcVO /ua25iv4Zdw0q6xp58TyKFvjUtBAngKn0JeEJZCncSNEr0OQiskVdN0Ii82NDHuz7pSM A9viFZbnSC9tYH4jq3+IuRASsJqN9umBlJWmY8RW8kFSCtkafKmwzCuMo0wr7j8gb3w4 Y/VmhP7/MFqltNhh/tguV64O5XlJyABh4Ka2Q9IgtVIVd0+Ch5XEEEXN7hKE36Ovj2pf wLUA== 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=mV7CHonPxogPcyeUftXkm+Lw0wH74Tktm5Tn2Qcq/ho=; b=CLqG13kS7FgTEPQi3oSzEJc9p+fIw7mQMKc4acvbthiRLIL9S4HtaA7neiXy6nQZR0 Aljnv8q9ol5gPgJvDAwzCsnmRPlS01GReaMzWfPeNYrPxj1SLagUtevt9huX0BjveGYp sQBHqolm3NVvHmcxS6LQ6HPHRxNhXhSgv/X18j7EcYq1WnaTGvIYKdybV/myQ87F2QbK Bkhku23LlZ27mGYdekiEjVm9rasUOc6eyTLKhmaMqUGIh3SnnfdGgQ+IEC1wx/Ng5kWF mbELbXE2a/YQRzdh6zPP5idBg3MLc9zyx6TzzBHuuuN4vMbCL5o2GWmCylXuLpW2EPuD zBPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jlG0GaoG; 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 h14si2762918pjt.78.2019.09.04.11.26.42; Wed, 04 Sep 2019 11:26:57 -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=jlG0GaoG; 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 S1733107AbfIDSAH (ORCPT + 99 others); Wed, 4 Sep 2019 14:00:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388339AbfIDSAF (ORCPT ); Wed, 4 Sep 2019 14:00:05 -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 35B0022CF7; Wed, 4 Sep 2019 18:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620004; bh=tFqCp16aNSWR277rTmCPSwFTD5kGdcp9QL3VQurlJrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jlG0GaoGKRkAH7kvhq77548WBk1NUWvpIUxLOjGlbZJYcWQ22MCYtoUETjPa6S4it IpbKtPzOmmGnzjXSopmp6ImpIIMjSvS0dJgGPtXFbyOrRa6Zv6mXIuIAYQg+930zvh PAzs3tPBTb8NHlnHb50AGFub9+LGtyJXHsGV5Ibo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, ZhangXiaoxu , Mike Snitzer Subject: [PATCH 4.9 38/83] dm space map metadata: fix missing store of apply_bops() return value Date: Wed, 4 Sep 2019 19:53:30 +0200 Message-Id: <20190904175307.224152559@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175303.488266791@linuxfoundation.org> References: <20190904175303.488266791@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: ZhangXiaoxu commit ae148243d3f0816b37477106c05a2ec7d5f32614 upstream. In commit 6096d91af0b6 ("dm space map metadata: fix occasional leak of a metadata block on resize"), we refactor the commit logic to a new function 'apply_bops'. But when that logic was replaced in out() the return value was not stored. This may lead out() returning a wrong value to the caller. Fixes: 6096d91af0b6 ("dm space map metadata: fix occasional leak of a metadata block on resize") Cc: stable@vger.kernel.org Signed-off-by: ZhangXiaoxu Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/persistent-data/dm-space-map-metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/md/persistent-data/dm-space-map-metadata.c +++ b/drivers/md/persistent-data/dm-space-map-metadata.c @@ -248,7 +248,7 @@ static int out(struct sm_metadata *smm) } if (smm->recursion_count == 1) - apply_bops(smm); + r = apply_bops(smm); smm->recursion_count--;