Files
i2som-imx-linux/block
Tejun Heo a51db52c68 block: fix synchronization and limit check in blk_alloc_devt()
commit ce23bba842 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: Ben Hutchings <ben@decadent.org.uk>
2013-03-06 03:24:16 +00:00
..
2012-08-02 14:37:54 +01:00
2012-08-02 14:37:54 +01:00
2011-12-29 09:16:28 +01:00
2012-08-02 14:37:54 +01:00
2012-08-02 14:37:54 +01:00
2012-03-12 12:31:36 -07:00
2011-07-31 22:05:09 +02:00
2011-07-31 22:05:09 +02:00