Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1322395yba; Tue, 2 Apr 2019 06:51:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNtLGHlFsArGd8sS2auK9+rSxdiXEdBoE3b1Cbn2/Cc4ejx7g4XvqKcqq/kXd/wsXdpCHv X-Received: by 2002:a63:1cd:: with SMTP id 196mr67243303pgb.58.1554213103501; Tue, 02 Apr 2019 06:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554213103; cv=none; d=google.com; s=arc-20160816; b=Oa9XN6FFZYUFo3fEU4NzbxR2dC8rmVvkMUPtvcvtSUXTqO0UWWKWqpujtY8BXNZwdv TKrUThU/DoMuND01E9ZHFOn1EmDXB/21Bk5QVSsyb9LYRIqYMXGhzYt914vV1rbkPegt /clVZpXCGT3EvZAmAakjN9Xck1hgPq0+N27K3eLHju/z10e5uNmwlpZbW5Q8cjcuynA6 BZ+KckDAsclnP/tuWpohpZx8T0N2IqS5GIvfB+aUG5AoP3ZQ3XnHGA3oBv+61O2xb1jE 5R4fBbQL+GF4k8hUTQS0u5hFODIp5nz7IEgXK6dBvLyq/Kcy89RBSKSBGqoplDXMJHUo hesQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=WedulG5ChIbPeiy6W8Ib2WMoIsmNrJgFAC4cJQ/EIYA=; b=JTLcclJkU5n3cFsd95GiAPfgDt101PXgrD7ZmB5H9WvWuUN4i0CORUulbarAL1uF2W 5UmfCFaZUtxmpHhr5VIloaJjF42jmKSrdd4rXn9pW6H5QJ8WKHKagg2tflf7Ap71O/qo lMatVuEr+XfRh7Ue6+TB96zO3qzFP5mHktJgGhfi8yWjo+pfZlnrOBNz63Kr5mi+TGax J2Boy5mtdyxtFyfILNCBVk/AYCHAAycpDzJyfhs3qJuYaWMUWDG6AhJ1PjCaKZzRRVuo KQOAYJlOmF6hD6gMeWEVPcY2a+GUIVAV0kRK/vmRxDThso5i217W0fivaggLMUCjbQ9W R5Qg== ARC-Authentication-Results: i=1; mx.google.com; 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 f6si11544021plf.356.2019.04.02.06.51.28; Tue, 02 Apr 2019 06:51:43 -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; 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 S1732366AbfDBNt7 (ORCPT + 99 others); Tue, 2 Apr 2019 09:49:59 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:42810 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731136AbfDBNkB (ORCPT ); Tue, 2 Apr 2019 09:40:01 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBJdu-0002mZ-3O; Tue, 02 Apr 2019 14:39:58 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdt-0004qp-Dm; Tue, 02 Apr 2019 14:39:57 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Vasily Averin" , "David Teigland" Date: Tue, 02 Apr 2019 14:38:27 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 07/99] dlm: lost put_lkb on error path in receive_convert() and receive_unlock() In-Reply-To: X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.65-rc1 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") Signed-off-by: Vasily Averin Signed-off-by: David Teigland Signed-off-by: Ben Hutchings --- fs/dlm/lock.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -4178,6 +4178,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; } @@ -4231,6 +4232,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; }