summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-02-27 17:03:56 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-04 06:06:41 +0800
commit303ee54c72f488b90c2355977c1619a08db6ed9c (patch)
tree77bb05fd101c9715b9ce2c2ddc4a54f93ca0edea /lib/mpi/mpi-add.c
parenta8aa6d32035120fdfef09ccb88c694047013eb7b (diff)
block: fix synchronization and limit check in blk_alloc_devt()
commit ce23bba842aee98092225d9576dba47c82352521 upstream. 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions