summaryrefslogtreecommitdiffstats
path: root/0088-RHBZ-693524-fix-prio-segfault.patch
diff options
context:
space:
mode:
Diffstat (limited to '0088-RHBZ-693524-fix-prio-segfault.patch')
-rw-r--r--0088-RHBZ-693524-fix-prio-segfault.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0088-RHBZ-693524-fix-prio-segfault.patch b/0088-RHBZ-693524-fix-prio-segfault.patch
new file mode 100644
index 0000000..b0357aa
--- /dev/null
+++ b/0088-RHBZ-693524-fix-prio-segfault.patch
@@ -0,0 +1,29 @@
+---
+ multipathd/main.c | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+Index: multipath-tools/multipathd/main.c
+===================================================================
+--- multipath-tools.orig/multipathd/main.c
++++ multipath-tools/multipathd/main.c
+@@ -957,15 +957,16 @@ retry_count_tick(vector mpvec)
+ int update_prio(struct path *pp, int refresh_all)
+ {
+ int oldpriority;
++ struct path *pp1;
+ struct pathgroup * pgp;
+ int i, j, changed = 0;
+
+ if (refresh_all) {
+ vector_foreach_slot (pp->mpp->pg, pgp, i) {
+- vector_foreach_slot (pgp->paths, pp, j) {
+- oldpriority = pp->priority;
+- pathinfo(pp, conf->hwtable, DI_PRIO);
+- if (pp->priority != oldpriority)
++ vector_foreach_slot (pgp->paths, pp1, j) {
++ oldpriority = pp1->priority;
++ pathinfo(pp1, conf->hwtable, DI_PRIO);
++ if (pp1->priority != oldpriority)
+ changed = 1;
+ }
+ }