]> err.no Git - linux-2.6/commitdiff
[GFS2] Fix typo in rename of directories
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 7 Jun 2007 10:29:35 +0000 (11:29 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:23:19 +0000 (08:23 +0100)
A typo caused us to pass a NULL pointer when renaming directories. It
was accidentally introduced in: [GFS2] Clean up inode number handling

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_inode.c

index 9cc07f442ef56ee69babae78cb843d94b1e96d15..84051b997a43739f866e8b25adebe60904b9eb6c 100644 (file)
@@ -749,7 +749,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
                if (error)
                        goto out_end_trans;
 
-               error = gfs2_dir_mvino(ip, &name, nip, DT_DIR);
+               error = gfs2_dir_mvino(ip, &name, ndip, DT_DIR);
                if (error)
                        goto out_end_trans;
        } else {