multipath: check setup_multipath return value.
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 13 Jul 2011 18:30:42 +0000 (13:30 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 1 Sep 2011 06:58:32 +0000 (08:58 +0200)
commitf4b3137176beaacc0084284d1f3d573610123994
treeeba549657ba04534ee013fca29b864a90b66ef30
parent735f2992398d4179601f3d7043fad606c90171d4
multipath: check setup_multipath return value.

When setup_multipath() fails, it removes the map. So update_path_groups()
needs check the return value, and fail without touching the map anymore if
setup_multipath() fails.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
multipathd/main.c