Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3139564pxb; Fri, 5 Nov 2021 10:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJHn0uUF54VxARn+QFXoTFxEjltwVDNyogOPkwoKH5NHhZgHu7OCh5s5hERdNkoxYO4Alz X-Received: by 2002:a05:6602:15cc:: with SMTP id f12mr433695iow.2.1636132958931; Fri, 05 Nov 2021 10:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636132958; cv=none; d=google.com; s=arc-20160816; b=eDKQHMB7g55d/L4/wZsRM9b9gIZ4j2KNYXvMQK6v3krBC9Li7/zygNLlP1aE8vVSat cdcMapoJA21cqqF8A0rOwHeghtmNmSSc6jKmgteVoslm/o6uUeidupfo9qHMFJaDfdWc H7Tfy9FyLWd02N4Yb03rQGA7rVVP8UZU8hULzSKRr++mmA53/iDwTDug5nkNF7HF2AHg 9wQDoCG0zGbUlVRBYPSpZqLIvv69CV1IcFMqqwOihGj5fjBc9O6KO8RQ6Yb7pbpcElPa UJAYswxW/EXgFBdTJd5CK9jINAehL8KXlwZ0Qa6cFhlMOGUDNYJI/FUPSyMbwA1OYt+P Ji3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FUfTaVo+629GOBlpYOEv9mcvhLnKgR8QckkA+gd8iiI=; b=f+fmf0n1dJA7EtZuTIJyvdOIrlR0WryaZhu979oFWCk1tXSUvk+UhwVb6XeKn/1qBx KGjxquAVYR1C9EwoU5XPQSa5Pp+o/fRWjQd+mCZZ82OzeC3JsqTtWrKKuWc13HgioM4h ebhbVZ+1v3o7Xmy8+gnWZQAhNh7iQaGBws9mTyUteJaOhMXeWBYPVNY/U+m5rrrcWwBP RUS7yBtIzp2USImiEEyRBEvr9d+jlExkqQUAwO8zVN/EFBC8DaiuNMwDzrgPz02O/JBi ZlPAPMEiFUYtaWyVsAuK4YtHrQ+FOy5r6K5a48OXHwRgbUKppMQKMuLf4s2zLg4WIb4A j6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jtOUBcJ6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si17950378iov.8.2021.11.05.10.22.23; Fri, 05 Nov 2021 10:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jtOUBcJ6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233650AbhKEQ5G (ORCPT + 99 others); Fri, 5 Nov 2021 12:57:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:60778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233703AbhKEQ5F (ORCPT ); Fri, 5 Nov 2021 12:57:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CCDF460E9C; Fri, 5 Nov 2021 16:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636131265; bh=ME0jCqFRX/NiwfEsOja6gZmVp/gVjEkqBMvTXUcKzvQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jtOUBcJ6PmQJ2R25tqhiUHux9nwwLcFEue9eZshPnzdXL9U9tfZNYKYPZhWZr6AF8 JXWnrDKnKRAamHbR0i3+kdt3t7fFZFoeHrSBZnEN8wjVBn9vSj/Gg33o5PQqf/0o+7 yI31NH9eE8Un1z6CVohCn6/x9lNdoTR9HcewpsKy1f4kUUUDJ9rbHo14ihf6dSAh6P 4IVar6EuYgt58Lk1XExi8SA95x2lDXXNwjJHg0mMAUP9mN73IdydcXIrafqvgP+lR2 uXvs48AFBOtQ0hXat4gmJVIwT0zGtBHKRqUF4/gLKp4zpadQyR2Zd1A2psN9HDtGtQ 4OTR9RsLQeUBA== Date: Fri, 5 Nov 2021 09:54:21 -0700 From: Nathan Chancellor To: trondmy@kernel.org Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH] NFS: Don't trace an uninitialised value Message-ID: References: <20211105163852.214665-1-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105163852.214665-1-trondmy@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Nov 05, 2021 at 12:38:52PM -0400, trondmy@kernel.org wrote: > From: Trond Myklebust > > If fhandle is NULL or fattr is NULL, then 'error' is uninitialised. > > Reported-by: Nathan Chancellor > Signed-off-by: Trond Myklebust Reviewed-by: Nathan Chancellor > --- > fs/nfs/dir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c > index 8de99f426183..731d31015b6a 100644 > --- a/fs/nfs/dir.c > +++ b/fs/nfs/dir.c > @@ -1798,7 +1798,7 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in > } > nfs_set_verifier(dentry, dir_verifier); > out: > - trace_nfs_lookup_exit(dir, dentry, flags, error); > + trace_nfs_lookup_exit(dir, dentry, flags, PTR_ERR_OR_ZERO(res)); > nfs_free_fattr(fattr); > nfs_free_fhandle(fhandle); > return res; > -- > 2.33.1 >