diff options
author | Tejun Heo <tj@kernel.org> | 2013-02-28 02:03:56 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-28 04:10:14 +0100 |
commit | ce23bba842aee98092225d9576dba47c82352521 (patch) | |
tree | 5642d356f830bc3987f65f6879249cf96bf24df2 /sound/sound_firmware.c | |
parent | idr: implement idr_preload[_end]() and idr_alloc() (diff) | |
download | linux-ce23bba842aee98092225d9576dba47c82352521.tar.xz linux-ce23bba842aee98092225d9576dba47c82352521.zip |
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 <tj@kernel.org>
Acked-by: Jens Axboe <axboe@kernel.dk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/sound_firmware.c')
0 files changed, 0 insertions, 0 deletions