mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: Michael Ellerman <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
061e41fdb5
commit
64f22fa17c
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ static int create_file(const char *name, mode_t mode,
|
|||
*dentry = NULL;
|
||||
mutex_lock(&parent->d_inode->i_mutex);
|
||||
*dentry = lookup_one_len(name, parent, strlen(name));
|
||||
if (!IS_ERR(dentry))
|
||||
if (!IS_ERR(*dentry))
|
||||
error = ipathfs_mknod(parent->d_inode, *dentry,
|
||||
mode, fops, data);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue