Skip to content

Commit

Permalink
ext4: using PTR_ERR() on the wrong variable in ext4_ext_migrate()
Browse files Browse the repository at this point in the history
"inode" is a valid pointer here.  "tmp_inode" was intended.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Dan Carpenter authored and Theodore Ts'o committed Feb 20, 2012
1 parent 4fda400 commit a0cc910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ int ext4_ext_migrate(struct inode *inode)
tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode,
S_IFREG, NULL, goal, owner);
if (IS_ERR(tmp_inode)) {
retval = PTR_ERR(inode);
retval = PTR_ERR(tmp_inode);
ext4_journal_stop(handle);
return retval;
}
Expand Down

0 comments on commit a0cc910

Please sign in to comment.