Version 2.7.7
[lttng-modules.git] / lttng-filter-validator.c
index fb5d2d6d899f5dcc27257500e2fd8754c927f4ec..446fc41bbda9b657a615871ed779b59c2b527227 100644 (file)
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <linux/types.h>
 #include <linux/jhash.h>
 #include <linux/slab.h>
 
@@ -103,8 +104,9 @@ int merge_point_add_check(struct mp_table *mp_table, unsigned long target_pc,
                                target_pc);
                        return -EINVAL;
                }
+       } else {
+               hlist_add_head(&mp_node->node, head);
        }
-       hlist_add_head(&mp_node->node, head);
        return 0;
 }
 
This page took 0.032936 seconds and 4 git commands to generate.