Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247762
b: refs/heads/master
c: cae13fe
h: refs/heads/master
v: v3
  • Loading branch information
Timo Warns authored and Linus Torvalds committed May 20, 2011
1 parent 6b4234a commit 42ae5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6c9366b2adb52cba64b359b3050200743c7568c
refs/heads/master: cae13fe4cc3f24820ffb990c09110626837e85d4
5 changes: 5 additions & 0 deletions trunk/fs/partitions/ldm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,11 @@ static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags)

list_add_tail (&f->list, frags);
found:
if (rec >= f->num) {
ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num);
return false;
}

if (f->map & (1 << rec)) {
ldm_error ("Duplicate VBLK, part %d.", rec);
f->map &= 0x7F; /* Mark the group as broken */
Expand Down

0 comments on commit 42ae5ac

Please sign in to comment.