Fix: don't allow disabling syscalls when none are enabled
[lttng-modules.git] / lttng-syscalls.c
index 00584e3eb2ed907cbe241b42756fe345ad5fc512..5cac721200bb8aa5cab44ffcfa281e380d7ccfe1 100644 (file)
@@ -1036,6 +1036,8 @@ int lttng_syscall_filter_disable(struct lttng_channel *chan,
        WARN_ON_ONCE(!chan->sc_table);
 
        if (!chan->sc_filter) {
+               if (!chan->syscall_all)
+                       return -EEXIST;
                filter = kzalloc(sizeof(struct lttng_syscall_filter),
                                GFP_KERNEL);
                if (!filter)
This page took 0.024151 seconds and 4 git commands to generate.