From: Christophe Varoqui Date: Wed, 17 Dec 2008 23:01:37 +0000 (+0100) Subject: [lib] don't add up errors in dm_flush_maps() X-Git-Tag: 0.4.9~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3237295a077327188c65456de180ec3027a8f783;p=platform%2Fupstream%2Fmultipath-tools.git [lib] don't add up errors in dm_flush_maps() to avoid return code overflow, as pointed by "Bryn M. Reeves", Redhat. --- diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index bcbeb28..6b289cf 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -568,7 +568,7 @@ dm_flush_maps (void) goto out; do { - r += dm_flush_map(names->name); + r |= dm_flush_map(names->name); next = names->next; names = (void *) names + next; } while (next);