projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e62c2d
)
Btrfs: fix uninit variable in repair_eb_io_failure
author
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Apr 2012 19:55:15 +0000
(15:55 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Apr 2012 19:55:15 +0000
(15:55 -0400)
We'd have to be passing bogus extent buffers for this uninit variable to
actually be used, but set it to zero just in case.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent_io.c
b/fs/btrfs/extent_io.c
index 0c3ec003f273a1b9c1ec55008f5f86d795a9de86..59ec105444fe25cbf1da0dcc67d1651483e83eb1 100644
(file)
--- a/
fs/btrfs/extent_io.c
+++ b/
fs/btrfs/extent_io.c
@@
-1937,7
+1937,7
@@
int repair_eb_io_failure(struct btrfs_root *root, struct extent_buffer *eb,
struct btrfs_mapping_tree *map_tree = &root->fs_info->mapping_tree;
u64 start = eb->start;
unsigned long i, num_pages = num_extent_pages(eb->start, eb->len);
- int ret;
+ int ret
= 0
;
for (i = 0; i < num_pages; i++) {
struct page *p = extent_buffer_page(eb, i);