mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
4fda400360
commit
a0cc910f15
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ int ext4_ext_migrate(struct inode *inode)
|
||||||
tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode,
|
tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode,
|
||||||
S_IFREG, NULL, goal, owner);
|
S_IFREG, NULL, goal, owner);
|
||||||
if (IS_ERR(tmp_inode)) {
|
if (IS_ERR(tmp_inode)) {
|
||||||
retval = PTR_ERR(inode);
|
retval = PTR_ERR(tmp_inode);
|
||||||
ext4_journal_stop(handle);
|
ext4_journal_stop(handle);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue