--- a/components/openvswitch/patches/07-ovsthread_key_destruct-fix.patch Tue Apr 05 15:53:34 2016 -0700
+++ b/components/openvswitch/patches/07-ovsthread_key_destruct-fix.patch Tue Apr 05 20:57:21 2016 -0700
@@ -1,9 +1,9 @@
This patch fixes a bug in ovsthread_key_destruct__.
-This patch has not been proposed upstream but will be proposed for 2.4.
+This patch has not been proposed upstream but will be proposed for 2.5.
diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c
-index 529756f..11735f9 100644
+index 529756f..8b76eb9 100644
--- a/lib/ovs-thread.c
+++ b/lib/ovs-thread.c
@@ -641,8 +641,10 @@ ovsthread_key_destruct__(void *slots_)
@@ -13,9 +13,9 @@
- for (i = 0; i < n / L2_SIZE; i++) {
- free(slots->p1[i]);
+ if (n > 0) {
-+ for (i = 0; i <= (n - 1) / L2_SIZE; i++) {
-+ free(slots->p1[i]);
-+ }
++ for (i = 0; i <= (n - 1) / L2_SIZE; i++) {
++ free(slots->p1[i]);
++ }
}
free(slots);
}