projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fddd6e
)
Revert "fsck.f2fs: deal with realloc failure"
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 14 Dec 2015 17:37:30 +0000
(09:37 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 14 Dec 2015 18:11:48 +0000
(10:11 -0800)
This reverts commit
43095ca4c293249affc29a975c151c92d24b13b5
.
fsck/fsck.c
patch
|
blob
|
history
diff --git
a/fsck/fsck.c
b/fsck/fsck.c
index
1b55c30
..
63ee914
100644
(file)
--- a/
fsck/fsck.c
+++ b/
fsck/fsck.c
@@
-892,10
+892,7
@@
static void print_dentry(__u32 depth, __u8 *name,
if (tree_mark_size <= depth) {
tree_mark_size *= 2;
- char *tree_mark_old = realloc(tree_mark, tree_mark_size);
- ASSERT(tree_mark_old != NULL);
- tree_mark = tree_mark_old;
- free(tree_mark_old);
+ tree_mark = realloc(tree_mark, tree_mark_size);
}
if (last_de)