projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fda400
)
ext4: using PTR_ERR() on the wrong variable in ext4_ext_migrate()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 20 Feb 2012 22:53:06 +0000
(17:53 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 20 Feb 2012 22:53:06 +0000
(17:53 -0500)
"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>
fs/ext4/migrate.c
patch
|
blob
|
history
diff --git
a/fs/ext4/migrate.c
b/fs/ext4/migrate.c
index e7d6bb0acfa6ccfd40e6a4f2e5ebd4e668374852..f39f80f8f2c541a78da45065b535100ffecadd5d 100644
(file)
--- 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;
}