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:
ccccf3d
)
Btrfs: fix uninit variable in clone ioctl
author
Chris Mason
<clm@fb.com>
Sat, 11 Apr 2015 12:09:06 +0000
(
05:09
-0700)
committer
Chris Mason
<clm@fb.com>
Mon, 13 Apr 2015 14:03:58 +0000
(07:03 -0700)
Commit
0d97a64e0
creates a new variable but doesn't always set it up.
This puts it back to the original method (key.offset + 1) for the cases
not covered by Filipe's new logic.
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index 97b782ff92bb36dff7deca86efa03c5e674d8418..ca0736ce25a0c701cdfe2aad444c288e964efe29 100644
(file)
--- a/
fs/btrfs/ioctl.c
+++ b/
fs/btrfs/ioctl.c
@@
-3205,7
+3205,7
@@
static int btrfs_clone(struct inode *src, struct inode *inode,
key.offset = off;
while (1) {
- u64 next_key_min_offset;
+ u64 next_key_min_offset
= key.offset + 1
;
/*
* note the key will change type as we walk through the