Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1318139yba; Tue, 2 Apr 2019 06:47:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2739zFXNpbjteJhfKtbtqNh7SviZA7ronqr8CMsdE2GfJwnZ5VizF71B9ixkjkHV0o1bE X-Received: by 2002:a63:fa46:: with SMTP id g6mr11420725pgk.382.1554212827704; Tue, 02 Apr 2019 06:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212827; cv=none; d=google.com; s=arc-20160816; b=HFmID91WVhbHSv0H13XkvoypRfBej6olcM6LkOS3WvZVycfAV5ZxeuXWFCTwQmJV4T ooxcJmlurLwZxwTEQLnBtPIOxUpCQ74Dr+kX52GzYaC3QwqEXwpZ94w4xwM2MfUBkkFt 9FiXKbNiom5Yuy7E4AmCMhVHt9DxtJjTVOeassPd7Bj7LghvZDI/RU+lOXwa+GBIWW39 9LuTLgUTf/92KI4P3B7M5suGZTfD7U6Wc5L+z4a36BBs8vqDU1IPautab9yTAQa/fE0w LiYC3XgPlcGtFRuXY6AztdocZP0oQ2HsDQlElECaC3lnSZGQ+psHoE4clBvZJjJaxSbA UfzQ== 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=AJU0Xa9HfjwuJtr4kI8rco0UcTtaR2pw6sdmCNdC7fc=; b=GgDQC7YNbaMDn8CdK6A4RrvsBCbw2GlHEpwMWYR1j1F9gvDhjnD5IvEe5gdNEVbubR ICatyRQ+5MfZMrMUtF7GbLyS8SsVbpN7xL3hWquCIVLqYCFt4ywkX172rST0//5mVwtM Hl1V/eUBbPsh/5ayVsIKwIakqKOujpYwsA1VIOr0G88cZKCLWMnUo4GbUyQsUgk9AdQ6 e3lZpT1WOrzh+oFyjjWe1mad4XoBxMtGVEBc7j1O+tz2DW95unHAMKuY+gRMW+O6G72P bLuthAPCFUyU4lIzuGtWJ4odIW7HFkLjgKpE2ROc4x9r+DY0AlgBGcZ+yAztTcCqAbq0 zFSg== 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 gn6si11494666plb.167.2019.04.02.06.46.52; Tue, 02 Apr 2019 06:47:07 -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 S1731471AbfDBNkH (ORCPT + 99 others); Tue, 2 Apr 2019 09:40:07 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:42808 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730918AbfDBNkB (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-0002mY-3G; Tue, 02 Apr 2019 14:39:58 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdt-0004qj-8d; 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 , "David Teigland" , "Vasily Averin" 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 06/99] dlm: possible memory leak on error path in create_lkb() 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 23851e978f31eda8b2d01bd410d3026659ca06c7 upstream. Fixes 3d6aa675fff9 ("dlm: keep lkbs in idr") Signed-off-by: Vasily Averin Signed-off-by: David Teigland Signed-off-by: Ben Hutchings --- fs/dlm/lock.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -1210,6 +1210,7 @@ static int create_lkb(struct dlm_ls *ls, if (rv < 0) { log_error(ls, "create_lkb idr error %d", rv); + dlm_free_lkb(lkb); return rv; }