From: Michael Jeanson Date: Mon, 18 Mar 2019 20:20:36 +0000 (-0400) Subject: Fix: atomic_long_add_unless() returns a boolean X-Git-Tag: v2.11.0-rc5~19 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=5ad19305fc87a9928e787d888ab95b954ba80a9e;hp=5ad19305fc87a9928e787d888ab95b954ba80a9e;p=lttng-modules.git 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 Signed-off-by: Mathieu Desnoyers ---