Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319465
b: refs/heads/master
c: 8f069b4
h: refs/heads/master
i:
  319463: 1b6c0e0
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Jul 27, 2012
1 parent 03750e2 commit 4283611
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: eb850de608cc22e0199b3797cd5c0076bae6cda0
refs/heads/master: 8f069b41bce79b0c4b6076acd0f3d15df0a232ed
3 changes: 1 addition & 2 deletions trunk/drivers/md/dm-stripe.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
return -EINVAL;
}

if (kstrtouint(argv[1], 10, &chunk_size) ||
(chunk_size < (PAGE_SIZE >> SECTOR_SHIFT))) {
if (kstrtouint(argv[1], 10, &chunk_size) || !chunk_size) {
ti->error = "Invalid chunk_size";
return -EINVAL;
}
Expand Down

0 comments on commit 4283611

Please sign in to comment.