From: Mathieu Desnoyers Date: Thu, 30 Aug 2018 15:50:33 +0000 (-0400) Subject: Fix: uprobes: missing break in lttng_event_ioctl() X-Git-Tag: v2.11.0-rc1~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0586316f8483b4da2c623a8dc13d2920ba19bbc1;p=lttng-modules.git Fix: uprobes: missing break in lttng_event_ioctl() Found by Coverity: ** CID 1395322: Control flow issues (MISSING_BREAK) /lttng-abi.c: 1465 in lttng_event_ioctl() Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.c b/lttng-abi.c index 9d3f7424..0534472a 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -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) {