]> sourceware.org Git - systemtap.git/commitdiff
PR14611: enable PR9740 workaround only for kernel 2.6.23 - 2.6.29ish
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 24 Sep 2012 19:21:00 +0000 (15:21 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 24 Sep 2012 19:21:00 +0000 (15:21 -0400)
runtime/transport/transport.c

index 4398729426d6fb54d66661249389499bde6e2875..25bd4da45b11fda770e1502ddf69f7d64b5b4fff 100644 (file)
@@ -115,8 +115,11 @@ static void _stp_handle_start(struct _stp_msg_start *st)
        if (handle_startup) {
                dbug_trans(1, "stp_handle_start\n");
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) // linux commit #5f4352fb
+#if LINUX_VERSION_CODE <  KERNEL_VERSION(2,6,29) // linux commit #9be260a6
 #ifdef STAPCONF_VM_AREA
                { /* PR9740: workaround for kernel valloc bug. */
+                  /* PR14611: not required except within above kernel range. */
                        void *dummy;
 #ifdef STAPCONF_VM_AREA_PTE
                        dummy = alloc_vm_area (PAGE_SIZE, NULL);
@@ -125,6 +128,8 @@ static void _stp_handle_start(struct _stp_msg_start *st)
 #endif
                        free_vm_area (dummy);
                }
+#endif
+#endif
 #endif
 
                _stp_target = st->target;
This page took 0.028354 seconds and 5 git commands to generate.