Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165907
b: refs/heads/master
c: 1fb58a6
h: refs/heads/master
i:
  165905: 3dfdc19
  165903: bfe44c5
v: v3
  • Loading branch information
Sage Weil authored and Chris Mason committed Sep 21, 2009
1 parent cf36346 commit b300f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76dda93c6ae2c1dc3e6cde34569d6aca26b0c918
refs/heads/master: 1fb58a6051cd904a9f8e0344b22e31921d6b5a4d
3 changes: 1 addition & 2 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
datao += off - key.offset;
datal -= off - key.offset;
}
if (key.offset + datao + datal + key.offset >
off + len)
if (key.offset + datao + datal > off + len)
datal = off + len - key.offset - datao;
/* disko == 0 means it's a hole */
if (!disko)
Expand Down

0 comments on commit b300f04

Please sign in to comment.