Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251285
b: refs/heads/master
c: 78f4bb3
h: refs/heads/master
i:
  251283: 2d1871a
v: v3
  • Loading branch information
Namhyung Kim authored and Jens Axboe committed May 24, 2011
1 parent b751f47 commit ccc2f24
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0ddf72be4edbd7640b57c13161f71416df16ec11
refs/heads/master: 78f4bb367fd147a0e7e3998ba6e47109999d8814
3 changes: 3 additions & 0 deletions trunk/drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,9 @@ static int __init loop_init(void)
if (max_part > 0)
part_shift = fls(max_part);

if ((1UL << part_shift) > DISK_MAX_PARTS)
return -EINVAL;

if (max_loop > 1UL << (MINORBITS - part_shift))
return -EINVAL;

Expand Down

0 comments on commit ccc2f24

Please sign in to comment.