[PATCH] device-mapper: Fix dm_swap_table error cases
authorAlasdair G Kergon <agk@redhat.com>
Tue, 12 Jul 2005 22:53:05 +0000 (15:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:19:11 +0000 (16:19 -0700)
commit93c534aefb906824d71ea779ed0c7f1573843f4e
tree9deaabe380491885f7a312648e222f266cdf064f
parentc3cd4f6b275da0f594797b73f721a4185335478f
[PATCH] device-mapper: Fix dm_swap_table error cases

Fix dm_swap_table() __bind error cases: a missing unlock, and EINVAL
preferable to EPERM.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm.c