Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5992416ybc; Wed, 27 Nov 2019 13:03:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwxl5xSSPUx7z8fu0MPLf4IKN9FzeQM/vQwn6FzVV5VpqpdnPB8hsGrGCvA2oH0qUIL4jG+ X-Received: by 2002:a05:6402:512:: with SMTP id m18mr34738635edv.250.1574888607892; Wed, 27 Nov 2019 13:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888607; cv=none; d=google.com; s=arc-20160816; b=Jn51um2aFIy9ZdfkiTXT00sNDOT6PcL0weiLs2cYa0sXaDRUrw+Gp8xIwniR7x3YIb ee1uy5TYBSb3YKdVCunqgLXHknJ/mKtPOceoQRhi+OpdbCEplp4TsKQFBaU0EfO5rhTL vuCEUTnmo0A+Zensc+vQGZTVxnRZISnzx+6tDajJRjawIBNuv809yBM/C5pXt5Oq4TBa Pt9TE+Ihpy+LS/yAloBemrzrO0pfbZNzCQvfoanyR7f+gjxUH2GQNxZdAFOmd6v+H+mh jD1Fjfumymh94AqOYYodY6npvJ38v4iTQjz7UjQSBq73i/eW70eULYNwBDAeMTZ5rTmS TIBA== 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=L2rODfk7dIUVLeUgWPmNETsIajAFKpY3CfB/5UoNjYA=; b=lXW/aKGexkASLs8GhnFuz/ibic4eEtxe+py5OU4js8MXDPn17l1E0djrixetRA092d GcNyG7eh8eHWjiaghen9ErLgM7MO+RD89r6jbxokS2E+wiATviN6MJIhLTDJipOIdEEx idOVUDCKVh5vQtA5YJIvbuguwg7PAW9aEkU+LEWXj7kLLW+Ma47aB/vQ4ml2cOy97wU7 CSfXGFQvvkWbQhxzHvlKJ3yfdF9X+mR1OdEl8oWywF0Zf08J02RR0jRPvaO/suRWw2bm 4hIzsZrW4qLZs6e/P4Ns9iUTgX1Ihs4i/a68cwXpo/cH++8sMee/CvCSLbvBnvnw1pAq FnzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XsVMZ3RL; 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 s16si10137595eju.337.2019.11.27.13.03.02; Wed, 27 Nov 2019 13:03:27 -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=XsVMZ3RL; 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 S1730700AbfK0U77 (ORCPT + 99 others); Wed, 27 Nov 2019 15:59:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:51576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731486AbfK0U7y (ORCPT ); Wed, 27 Nov 2019 15:59:54 -0500 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 E3D642158A; Wed, 27 Nov 2019 20:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888394; bh=HE5vjgSPVIYyamxX1g17Nmv7Viq54oqMyZMyPewWjus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XsVMZ3RLijSM95ZgF/PIuqc9WDWVejh03xfOKt8TGWA2j/erW/kJmwGghCoyYQBwR +6pl/gawOuaWa8bPXEsJLjlm6n7YWdo28skQx8Bh027n4MWWPoYmy/nPRVVzzkIqtf ZFxUvkY1FKhJVPJoLxEX2eWX+GfbeL4h3gqG4ywE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Yan, Zheng" , Jeff Layton , Ilya Dryomov , Sasha Levin Subject: [PATCH 4.19 117/306] ceph: fix dentry leak in ceph_readdir_prepopulate Date: Wed, 27 Nov 2019 21:29:27 +0100 Message-Id: <20191127203123.714067070@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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: Yan, Zheng [ Upstream commit c58f450bd61511d897efc2ea472c69630635b557 ] Signed-off-by: "Yan, Zheng" Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov Signed-off-by: Sasha Levin --- fs/ceph/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index acb70a6a82f0f..1e438e0faf77e 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1694,7 +1694,6 @@ int ceph_readdir_prepopulate(struct ceph_mds_request *req, if (IS_ERR(realdn)) { err = PTR_ERR(realdn); d_drop(dn); - dn = NULL; goto next_item; } dn = realdn; -- 2.20.1