Re: [PATCH 4/5] kernfs: don't set dentry->d_fsdata
From: Tejun Heo
Date: Tue May 23 2017 - 14:38:08 EST
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