diff options
| author | Tejun Heo <[email protected]> | 2013-02-27 17:03:56 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-02-27 19:10:14 -0800 |
| commit | ce23bba842aee98092225d9576dba47c82352521 (patch) | |
| tree | 5642d356f830bc3987f65f6879249cf96bf24df2 /scripts/const_structs.checkpatch | |
| parent | d5c7409f79e14db49d00785692334657592c07ff (diff) | |
block: fix synchronization and limit check in blk_alloc_devt()
idr allocation in blk_alloc_devt() wasn't synchronized against lookup
and removal, and its limit check was off by one - 1 << MINORBITS is
the number of minors allowed, not the maximum allowed minor.
Add locking and rename MAX_EXT_DEVT to NR_EXT_DEVT and fix limit
checking.
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Jens Axboe <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions