summaryrefslogtreecommitdiffstats
path: root/0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch
diff options
context:
space:
mode:
Diffstat (limited to '0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch')
-rw-r--r--0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch b/0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch
new file mode 100644
index 0000000..1f16290
--- /dev/null
+++ b/0014-multipathd-fix-compiler-warning-for-uev_pathfail_che.patch
@@ -0,0 +1,31 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Martin Wilck <mwilck@suse.com>
+Date: Sat, 13 Jan 2018 22:19:32 +0100
+Subject: [PATCH] multipathd: fix compiler warning for uev_pathfail_check
+
+gcc7 spits out an indentation warning for this function.
+
+Fixes: 8392431 "multipath-tools: check null path before handle path-failed event"
+Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
+---
+ multipathd/main.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/multipathd/main.c b/multipathd/main.c
+index 6dabf2c..596654c 100644
+--- a/multipathd/main.c
++++ b/multipathd/main.c
+@@ -1142,8 +1142,8 @@ uev_pathfail_check(struct uevent *uev, struct vectors *vecs)
+ lock(&vecs->lock);
+ pthread_testcancel();
+ pp = find_path_by_devt(vecs->pathvec, devt);
+- if (!pp)
+- goto out_lock;
++ if (!pp)
++ goto out_lock;
+ r = io_err_stat_handle_pathfail(pp);
+ if (r)
+ condlog(3, "io_err_stat: %s: cannot handle pathfail uevent",
+--
+2.7.4
+