[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170523183740.GA13222@htj.duckdns.org>
Date: Tue, 23 May 2017 14:37:40 -0400
From: Tejun Heo <tj@...nel.org>
To: Shaohua Li <shli@...com>
Cc: linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org,
viro@...iv.linux.org.uk, Kernel-team@...com
Subject: Re: [PATCH 4/5] kernfs: don't set dentry->d_fsdata
Hello,
On Mon, May 22, 2017 at 03:53:08PM -0700, Shaohua Li wrote:
> +#define kernfs_dentry_node(d) ((d_inode(d))->i_private)
This would oops on a negative dentry. We need to test d_inode(d) for
NULL first.
Thanks.
--
tejun
Powered by blists - more mailing lists