Fix: ust_app_list_events should return -ENOSYS when no UST
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Jun 2012 21:01:13 +0000 (17:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Jun 2012 21:01:13 +0000 (17:01 -0400)
Caller thinks that memory is allocated, and incorrectly dereferences a
NULL pointer if we return 0 rather than -ENOSYS.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/ust-app.h

index 88539879af086767e418090afcb08c6d332a1617..5d8485f3b208608c9968b5fd419ecbb65606b0e8 100644 (file)
@@ -202,7 +202,7 @@ int ust_app_stop_trace_all(struct ltt_ust_session *usess)
 static inline
 int ust_app_list_events(struct lttng_event **events)
 {
-       return 0;
+       return -ENOSYS;
 }
 static inline
 int ust_app_register(struct ust_register_msg *msg, int sock)
This page took 0.03932 seconds and 4 git commands to generate.