diff --git a/libibumad-umad.c-In-get_port-ignore-sysfs-rate-file-errors.patch b/libibumad-umad.c-In-get_port-ignore-sysfs-rate-file-errors.patch new file mode 100644 index 0000000..be7fca1 --- /dev/null +++ b/libibumad-umad.c-In-get_port-ignore-sysfs-rate-file-errors.patch @@ -0,0 +1,14 @@ +diff --git libibumad/umad.c libibumad/umad.c +index 535256e2..dcb2c680 100644 +--- libibumad/umad.c ++++ libibumad/umad.c +@@ -150,8 +150,7 @@ static int get_port(const char *ca_name, const char *dir, int portnum, umad_port + goto clean; + if (sys_read_uint(port_dir, SYS_PORT_PHY_STATE, &port->phys_state) < 0) + goto clean; +- if (sys_read_uint(port_dir, SYS_PORT_RATE, &port->rate) < 0) +- goto clean; ++ sys_read_uint(port_dir, SYS_PORT_RATE, &port->rate); + if (sys_read_uint(port_dir, SYS_PORT_CAPMASK, &capmask) < 0) + goto clean; + diff --git a/rdma-core.changes b/rdma-core.changes index 91c53af..e8e573d 100644 --- a/rdma-core.changes +++ b/rdma-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 8 14:05:44 UTC 2017 - nmoreychaisemartin@suse.com + +- Add libibumad-umad.c-In-get_port-ignore-sysfs-rate-file-errors.patch + * Fix issue with umad when QSFP is not plugged in (bnc#1058539) + ------------------------------------------------------------------- Thu Nov 2 08:39:49 UTC 2017 - nmoreychaisemartin@suse.com diff --git a/rdma-core.spec b/rdma-core.spec index bd2c705..8658baa 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -53,6 +53,7 @@ Source1: baselibs.conf Patch0: ibacm-Incorrect-usage-of-BE-byte-order-of-MLID-attach-detach_mcast.patch Patch1: ibacm-Incorrect-list-used-for-subnet-list-causes-a-segfault.patch Patch2: libqedr-fix-inline-data-copy.patch +Patch3: libibumad-umad.c-In-get_port-ignore-sysfs-rate-file-errors.patch BuildRequires: binutils BuildRequires: cmake >= 2.8.11 BuildRequires: gcc @@ -317,6 +318,7 @@ on those changes. %patch0 %patch1 %patch2 +%patch3 %build