projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: don't allow disabling syscalls when none are enabled
[lttng-modules.git]
/
lttng-syscalls.c
diff --git
a/lttng-syscalls.c
b/lttng-syscalls.c
index 00584e3eb2ed907cbe241b42756fe345ad5fc512..5cac721200bb8aa5cab44ffcfa281e380d7ccfe1 100644
(file)
--- 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) {
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)
filter = kzalloc(sizeof(struct lttng_syscall_filter),
GFP_KERNEL);
if (!filter)
This page took
0.025355 seconds
and
4
git commands to generate.