]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
[PATCH] dm: free minor after unlink gendisk
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Fri, 24 Feb 2006 21:04:25 +0000 (13:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Feb 2006 22:31:39 +0000 (14:31 -0800)
commit63d94e482df769f31e8b1097f06c3a3fba7bced4
tree0461197daa1d7df50087b4dfa2b692dfcd81d745
parentd9dde59ba03095e526640988c0fedd75e93bc8b7
[PATCH] dm: free minor after unlink gendisk

Minor number should be freed after del_gendisk().  Otherwise, there could
be a window where 2 registered gendisk has same minor number.

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm.c