Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp648147imu; Fri, 11 Jan 2019 06:46:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN4g+80PVPOap+T9YiKylcNBA2sMLEjZqw9A6kTjMvuXKCQ+6Rx5JFEe7fTSuslGgd+B6AIa X-Received: by 2002:a62:4d81:: with SMTP id a123mr15303191pfb.122.1547217995274; Fri, 11 Jan 2019 06:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547217995; cv=none; d=google.com; s=arc-20160816; b=d3j0DsoAYFGZIN43dmwkJfMODXiQZu0eFftx2Hd5hMDRpvkWL874OHMYQmxMyeUlP2 g7Fezh7HIP/7n/rNq7t8iUMylsS7vULsHweAubI+o5p+GPZiC2SwfuyIYcWQfy41jVje PhAsVPtSK/njY/R9zu5Mz7LNUK5r22TfMgaxE8/4tMusUBKTAbWCcNHZjbnqeCoFqW8x tQP3g517I7WsRDaqCzeTodDINQl9ZEtvueYU8ADENTZkdgUd5bI8APHbiUHih13oD8Q7 XSfYW+rzfbpCjWNGcoyFbfXWeDVTcJFcPlVF5jECSpB14EXGdgJ1MwBCcAV6qg91t6i9 EvkQ== 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=BAAIscFMiAjSfDb0KPgyQElGGsO6/T2lVE/DeyGuS+I=; b=BDqQmm+uY6EPyDcFlaBd27X3MvBFZ56k83LIw1C1+37462YVgOyIR06L/oePFrCJW7 lWM5qh76F7MB253ga//L6iEap+Wed1LXra7hQh4qQDa+SFZUUet/+42/JukLDwx986w/ TkocXq83bWs9btW71yshtPxA8Ey5ENKFp/B5Rxpl8+jPS9XwlCXLJzFs1KwLmIxawc6L oYo1tW7h9TJeFH9pc+UTfbjGqqjwm5XOcTn4eiUbzkr9wdpT1Cns4HpK9fswBMAMf1vz hTqzp6ku/lF8xWezVZuSpJT9fyDjXY16KH3Sutr1bhz24fkT6znM0CruYmvb5xLXRp1V h5tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jHgle3YC; 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 y7si73234740pgc.236.2019.01.11.06.46.20; Fri, 11 Jan 2019 06:46:35 -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=jHgle3YC; 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 S2404657AbfAKOon (ORCPT + 99 others); Fri, 11 Jan 2019 09:44:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:37554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403916AbfAKOoh (ORCPT ); Fri, 11 Jan 2019 09:44:37 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 10A90206B6; Fri, 11 Jan 2019 14:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217876; bh=GIGnzlXA1SWguAjiIfPfv78g9wL/E4V/xPh+zO3m6DU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jHgle3YCvCucnyVhbt09TAsuXOdNccsSQMCdMkHWcovhHIocS9B7WkJp/g883XbeM R/Qi+UP+0hyfwHQpGpeNu1QgFo5OFSyZ6U3Ibgq3tISC6hZeGI/G/qYydVu0t1iFKD 0qCCPS8Al66mUVi+J42AQCVIge+OcNGLZZcHj/is= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , David Teigland , stable@kernel.org Subject: [PATCH 4.20 31/65] dlm: lost put_lkb on error path in receive_convert() and receive_unlock() Date: Fri, 11 Jan 2019 15:15:17 +0100 Message-Id: <20190111131100.620353979@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131055.331350141@linuxfoundation.org> References: <20190111131055.331350141@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Averin commit c0174726c3976e67da8649ac62cae43220ae173a upstream. Fixes 6d40c4a708e0 ("dlm: improve error and debug messages") Cc: stable@kernel.org # 3.5 Signed-off-by: Vasily Averin Signed-off-by: David Teigland Signed-off-by: Greg Kroah-Hartman --- fs/dlm/lock.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -4180,6 +4180,7 @@ static int receive_convert(struct dlm_ls (unsigned long long)lkb->lkb_recover_seq, ms->m_header.h_nodeid, ms->m_lkid); error = -ENOENT; + dlm_put_lkb(lkb); goto fail; } @@ -4233,6 +4234,7 @@ static int receive_unlock(struct dlm_ls lkb->lkb_id, lkb->lkb_remid, ms->m_header.h_nodeid, ms->m_lkid); error = -ENOENT; + dlm_put_lkb(lkb); goto fail; }