From: Mathieu Desnoyers Date: Wed, 24 Sep 2014 16:17:03 +0000 (-0400) Subject: Fix: don't allow disabling syscalls when none are enabled X-Git-Tag: v2.6.0-rc1~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bcde0d5b7da973a9372b3db4acc0b08b9589e05b;p=lttng-modules.git Fix: don't allow disabling syscalls when none are enabled Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 00584e3e..5cac7212 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -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)