Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359394
b: refs/heads/master
c: 06004e6
h: refs/heads/master
v: v3
  • Loading branch information
Ming Lei authored and Linus Torvalds committed Feb 28, 2013
1 parent 264b59b commit 4d8bc1c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 8b8a6e1881be8d73b7a98f84ccec61e624ec5cac
refs/heads/master: 06004e6eebdaf101a0f9b533fac77b5768d2c09c
4 changes: 4 additions & 0 deletions trunk/block/partitions/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ int mac_partition(struct parsed_partitions *state)
put_dev_sector(sect);
return 0;
}

if (blocks_in_map >= state->limit)
blocks_in_map = state->limit - 1;

strlcat(state->pp_buf, " [mac]", PAGE_SIZE);
for (slot = 1; slot <= blocks_in_map; ++slot) {
int pos = slot * secsize;
Expand Down

0 comments on commit 4d8bc1c

Please sign in to comment.