summarylogtreecommitdiffstats
path: root/openonload-201606-bug63982-ilog2.patch
diff options
context:
space:
mode:
authorIdo Rosen2016-08-15 09:55:28 -0400
committerIdo Rosen2016-08-15 09:55:28 -0400
commit8dafcb94c317d61f0649381d8f37c5b917e8e601 (patch)
tree484cf43a7247ef8b4cf26938942bf211e989e812 /openonload-201606-bug63982-ilog2.patch
parent5dad3604ef70d7d1ed113491698838fd4ad055af (diff)
downloadaur-8dafcb94c317d61f0649381d8f37c5b917e8e601.tar.gz
Add patch for ia32_sys_call_table error.
Diffstat (limited to 'openonload-201606-bug63982-ilog2.patch')
-rw-r--r--openonload-201606-bug63982-ilog2.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/openonload-201606-bug63982-ilog2.patch b/openonload-201606-bug63982-ilog2.patch
deleted file mode 100644
index dc6414d51eec..000000000000
--- a/openonload-201606-bug63982-ilog2.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/src/lib/efrm/vi_resource_alloc.c b/src/lib/efrm/vi_resource_alloc.c
---- a/src/lib/efrm/vi_resource_alloc.c
-+++ b/src/lib/efrm/vi_resource_alloc.c
-@@ -1432,6 +1432,15 @@
-
- qso->q_len_entries = n_q_entries;
- qso->q_len_bytes = efrm_vi_q_bytes(virs, q_type, n_q_entries);
-+
-+ /* This value should always be positive, but if we don't check for this
-+ * explicitly, some compilers will assume that undefined logarithms
-+ * can be taken in get_order() and will generate code that won't link.
-+ * See bug63982. */
-+ EFRM_ASSERT(qso->q_len_bytes > 0);
-+ if (qso->q_len_bytes <= 0)
-+ return -EINVAL;
-+
- qso->q_len_page_order = get_order(qso->q_len_bytes);
- return 0;
- }
---- a/src/include/onload/version.h
-+++ b/src/include/onload/version.h
-@@ -29,7 +29,7 @@
-
-
- #ifndef ONLOAD_VERSION
--# define ONLOAD_VERSION "201606"
-+# define ONLOAD_VERSION "201606-patch63982"
- #endif
-
- #define ONLOAD_PRODUCT "OpenOnload"
-