Blame SOURCES/0030-rdma-Fix-for-ineffective-check-in-add_filter.patch

930fb9
From ad7f7e4a1fd4e0362a6d256c0d093d43b44e2c1d Mon Sep 17 00:00:00 2001
930fb9
From: Phil Sutter <psutter@redhat.com>
930fb9
Date: Thu, 25 Oct 2018 12:24:30 +0200
930fb9
Subject: [PATCH] rdma: Fix for ineffective check in add_filter()
930fb9
930fb9
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1602555
930fb9
Upstream Status: iproute2.git commit 3b0070f6b1a31
930fb9
930fb9
commit 3b0070f6b1a319b7d6a431a39270a4804cb5927e
930fb9
Author: Phil Sutter <phil@nwl.cc>
930fb9
Date:   Thu Oct 18 13:41:54 2018 +0200
930fb9
930fb9
    rdma: Fix for ineffective check in add_filter()
930fb9
930fb9
    With 'name' field defined as array in struct filters, it will always
930fb9
    contain a value irrespective of whether a name was assigned or not.
930fb9
930fb9
    Fix this by turning the field into a const char pointer.
930fb9
930fb9
    Fixes: 1174be72d1b4c ("rdma: Add filtering infrastructure")
930fb9
    Signed-off-by: Phil Sutter <phil@nwl.cc>
930fb9
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
930fb9
---
930fb9
 rdma/rdma.h | 2 +-
930fb9
 1 file changed, 1 insertion(+), 1 deletion(-)
930fb9
930fb9
diff --git a/rdma/rdma.h b/rdma/rdma.h
930fb9
index d4b7ba1..c3b7530 100644
930fb9
--- a/rdma/rdma.h
930fb9
+++ b/rdma/rdma.h
930fb9
@@ -34,7 +34,7 @@
930fb9
 
930fb9
 #define MAX_NUMBER_OF_FILTERS 64
930fb9
 struct filters {
930fb9
-	char name[32];
930fb9
+	const char *name;
930fb9
 	bool is_number;
930fb9
 };
930fb9
 
930fb9
-- 
930fb9
1.8.3.1
930fb9