projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d339d
)
Btrfs: fix uninit compiler warning in cow_file_range_nocow
author
Chris Mason
<chris.mason@oracle.com>
Fri, 9 Oct 2009 13:57:45 +0000
(09:57 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 9 Oct 2009 13:57:45 +0000
(09:57 -0400)
The extent_type variable was exposed uninit via a goto. It should be
impossible to trigger because it is protected by a check on another
variable, but this makes sure.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index d960492d3d883a7ca3962f74cfc79668ae11ef3f..ef399a7794ff3bd4cc32bd244ab02f92f3fec326 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-1023,6
+1023,7
@@
next_slot:
if (found_key.offset > cur_offset) {
extent_end = found_key.offset;
+ extent_type = 0;
goto out_check;
}