]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] dm: suspend: fix error path
authorAlasdair G Kergon <agk@redhat.com>
Thu, 9 Nov 2006 01:44:43 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 9 Nov 2006 02:29:23 +0000 (18:29 -0800)
commit1c86f66821c61d267ca39bfa6444f0d7b8daa360
tree63c0a47618b9efb465c6abb584a93214e0850485
parentac45a73231e6a6a12ccb229141aba7e741f62374
[PATCH] dm: suspend: fix error path

If the device is already suspended, just return the error and skip the code
that would incorrectly wipe md->suspended_bdev.

(This isn't currently a problem because existing code avoids calling this
function if the device is already suspended.)

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