31 lines
788 B
Diff
31 lines
788 B
Diff
|
|
From a358e60548ddb4631ed1b4ea404f71e1ea8f57e5 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Martin Wilck <mwilck@suse.com>
|
||
|
|
Date: Thu, 11 Apr 2019 12:49:20 +0200
|
||
|
|
Subject: [PATCH 1/8] libmultipath: group_by_prio: fix signedness bug
|
||
|
|
|
||
|
|
pp->priority can be negative, so we we shouldn't compare
|
||
|
|
it with an unsigned int.
|
||
|
|
|
||
|
|
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
||
|
|
---
|
||
|
|
libmultipath/pgpolicies.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/libmultipath/pgpolicies.c b/libmultipath/pgpolicies.c
|
||
|
|
index ac2596a..660768a 100644
|
||
|
|
--- a/libmultipath/pgpolicies.c
|
||
|
|
+++ b/libmultipath/pgpolicies.c
|
||
|
|
@@ -312,7 +312,7 @@ out:
|
||
|
|
int group_by_prio(struct multipath *mp)
|
||
|
|
{
|
||
|
|
int i;
|
||
|
|
- unsigned int prio;
|
||
|
|
+ int prio;
|
||
|
|
struct path * pp;
|
||
|
|
struct pathgroup * pgp;
|
||
|
|
vector pathvec = NULL;
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|
||
|
|
|