diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-02-20 17:53:06 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-02-20 17:53:06 -0500 |
commit | a0cc910f15027fbd731e78f3437cc076eebc22e9 (patch) | |
tree | b59e587fa9238e174ef647ca0767b9d3656d8e0c /fs/ext4/migrate.c | |
parent | 4fda400360e6c15b9dea4351f2ad85845cdfda7e (diff) | |
download | op-kernel-dev-a0cc910f15027fbd731e78f3437cc076eebc22e9.zip op-kernel-dev-a0cc910f15027fbd731e78f3437cc076eebc22e9.tar.gz |
ext4: using PTR_ERR() on the wrong variable in ext4_ext_migrate()
"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>
Diffstat (limited to 'fs/ext4/migrate.c')
-rw-r--r-- | fs/ext4/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c index e7d6bb0..f39f80f 100644 --- a/fs/ext4/migrate.c +++ b/fs/ext4/migrate.c @@ -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; } |