Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233696
b: refs/heads/master
c: 294f6cf
h: refs/heads/master
v: v3
  • Loading branch information
Timo Warns authored and Linus Torvalds committed Feb 25, 2011
1 parent 3247813 commit ed86e54
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: 2876592f231d436c295b67726313f6f3cfb6e243
refs/heads/master: 294f6cf48666825d23c9372ef37631232746e40d
5 changes: 5 additions & 0 deletions trunk/fs/partitions/ldm.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ static bool ldm_parse_vmdb (const u8 *data, struct vmdb *vm)
}

vm->vblk_size = get_unaligned_be32(data + 0x08);
if (vm->vblk_size == 0) {
ldm_error ("Illegal VBLK size");
return false;
}

vm->vblk_offset = get_unaligned_be32(data + 0x0C);
vm->last_vblk_seq = get_unaligned_be32(data + 0x04);

Expand Down

0 comments on commit ed86e54

Please sign in to comment.