Blame SOURCES/0115-RHBZ-1198418-fix-double-free.patch
|
|
38852f |
---
|
|
|
38852f |
multipathd/main.c | 13 +++++++++----
|
|
|
38852f |
1 file changed, 9 insertions(+), 4 deletions(-)
|
|
|
38852f |
|
|
|
38852f |
Index: multipath-tools-130222/multipathd/main.c
|
|
|
38852f |
===================================================================
|
|
|
38852f |
--- multipath-tools-130222.orig/multipathd/main.c
|
|
|
38852f |
+++ multipath-tools-130222/multipathd/main.c
|
|
|
38852f |
@@ -310,10 +310,15 @@ ev_add_map (char * dev, char * alias, st
|
|
|
38852f |
/*
|
|
|
38852f |
* now we can register the map
|
|
|
38852f |
*/
|
|
|
38852f |
- if (map_present && (mpp = add_map_without_path(vecs, alias))) {
|
|
|
38852f |
- sync_map_state(mpp);
|
|
|
38852f |
- condlog(2, "%s: devmap %s registered", alias, dev);
|
|
|
38852f |
- return 0;
|
|
|
38852f |
+ if (map_present) {
|
|
|
38852f |
+ if ((mpp = add_map_without_path(vecs, alias))) {
|
|
|
38852f |
+ sync_map_state(mpp);
|
|
|
38852f |
+ condlog(2, "%s: devmap %s registered", alias, dev);
|
|
|
38852f |
+ return 0;
|
|
|
38852f |
+ } else {
|
|
|
38852f |
+ condlog(2, "%s: uev_add_map failed", dev);
|
|
|
38852f |
+ return 1;
|
|
|
38852f |
+ }
|
|
|
38852f |
}
|
|
|
38852f |
r = get_refwwid(dev, DEV_DEVMAP, vecs->pathvec, &refwwid);
|
|
|
38852f |
|