Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252250
b: refs/heads/master
c: 315980c
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Jens Axboe committed May 26, 2011
1 parent 73d3fb4 commit fc56fb1
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: a2cba2913c7623789296e39d787b01031f9c7969
refs/heads/master: 315980c8688c4b06713c1a5fe9d64cdf8ab57a72
3 changes: 3 additions & 0 deletions trunk/drivers/block/brd.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@ static int __init brd_init(void)
if (max_part > 0)
part_shift = fls(max_part);

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

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

Expand Down

0 comments on commit fc56fb1

Please sign in to comment.