Fix: LTTNG_KERNEL_ADD_CALLSITE: Handle unknown event type
[lttng-modules.git] / lttng-abi.c
index 5624b6c4f99839a81f289dd45bc6a5c8e7181b2e..ad689f2873fbe6ad256021a131e2076fcb56f0db 100644 (file)
@@ -1529,6 +1529,9 @@ long lttng_event_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                (struct lttng_kernel_event_callsite __user *) arg);
                case LTTNG_TYPE_ENABLER:
                        return -EINVAL;
+               default:
+                       WARN_ON_ONCE(1);
+                       return -ENOSYS;
                }
        default:
                return -ENOIOCTLCMD;
This page took 0.023198 seconds and 4 git commands to generate.