Fix: atomic_long_add_unless() returns a boolean
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 18 Mar 2019 20:20:36 +0000 (16:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Mar 2019 20:37:23 +0000 (16:37 -0400)
commitafbee416289de1de537ae0992e05ac14f85f69fd
tree3fc286c8c6b1f2d65b30fb71347b0fe262e4243c
parent8af1abdc9576e807a15766e8faaadd7010c906ab
Fix: atomic_long_add_unless() returns a boolean

Because of a documentation error in older kernels, it was assumed that
atomic_long_add_unless would return the old value, but the
implementation actually returns a boolean.

Also add missing error code int 'ret' and compare against the right type
max value.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c
lttng-events.c
This page took 0.024786 seconds and 4 git commands to generate.