Commit 64f22fa1 authored by Michael Ellerman's avatar Michael Ellerman Committed by Roland Dreier

IB/ipath: Fix pointer-to-pointer thinko in ipath_fs.c

The return from lookup_one_len() is assigned to *dentry, so that's
what we should be checking with IS_ERR().
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 061e41fd
...@@ -86,7 +86,7 @@ static int create_file(const char *name, mode_t mode, ...@@ -86,7 +86,7 @@ static int create_file(const char *name, mode_t mode,
*dentry = NULL; *dentry = NULL;
mutex_lock(&parent->d_inode->i_mutex); mutex_lock(&parent->d_inode->i_mutex);
*dentry = lookup_one_len(name, parent, strlen(name)); *dentry = lookup_one_len(name, parent, strlen(name));
if (!IS_ERR(dentry)) if (!IS_ERR(*dentry))
error = ipathfs_mknod(parent->d_inode, *dentry, error = ipathfs_mknod(parent->d_inode, *dentry,
mode, fops, data); mode, fops, data);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment