projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9084533
)
[PATCH] affs: possible null pointer dereference in affs_rename()
author
Florin Malita
<fmalita@gmail.com>
Fri, 26 May 2006 01:44:23 +0000
(18:44 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 26 May 2006 18:55:46 +0000
(11:55 -0700)
If affs_bread() fails, the exit path calls mark_buffer_dirty_inode() with a
NULL argument.
Coverity CID: 312.
Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/affs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/affs/namei.c
b/fs/affs/namei.c
index d4c2d636c479dc2aaaa986656a8659424aac56a6..a42143ca01698e1ba64769d5d9eb1bc0aa095320 100644
(file)
--- a/
fs/affs/namei.c
+++ b/
fs/affs/namei.c
@@
-416,10
+416,9
@@
affs_rename(struct inode *old_dir, struct dentry *old_dentry,
return retval;
}
- retval = -EIO;
bh = affs_bread(sb, old_dentry->d_inode->i_ino);
if (!bh)
-
goto done
;
+
return -EIO
;
/* Remove header from its parent directory. */
affs_lock_dir(old_dir);