Fix: uprobes: missing break in lttng_event_ioctl()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 Aug 2018 15:50:33 +0000 (11:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 Aug 2018 15:50:33 +0000 (11:50 -0400)
Found by Coverity:

** CID 1395322:  Control flow issues  (MISSING_BREAK)
/lttng-abi.c: 1465 in lttng_event_ioctl()

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c

index 9d3f74240724ca72f5c4db1b93c4d74837b99848..0534472ad8c1a1189495fd73e5ccbbdf05477a82 100644 (file)
@@ -1472,7 +1472,9 @@ long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                        return lttng_enabler_attach_bytecode(enabler,
                                (struct lttng_kernel_filter_bytecode __user *) arg);
                }
-
+               default:
+                       WARN_ON_ONCE(1);
+                       return -ENOSYS;
                }
        case LTTNG_KERNEL_ADD_CALLSITE:
                switch (*evtype) {
This page took 0.027259 seconds and 4 git commands to generate.