Fix check in lttng_strlen_user_inatomic
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 6 Feb 2013 16:26:59 +0000 (11:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Feb 2013 16:28:12 +0000 (11:28 -0500)
commitc1ee10d076b0fd69b649bcd9a5f4f8de77dc9294
treee16ac7ffa049b6e3ac1b1720e09a2c192505b863
parentc3cd3de91a64e9f786e11658b1d05440e496352f
Fix check in lttng_strlen_user_inatomic

__copy_from_user_inatomic returns the number of bytes that could not be
copied, not an error code. This fixes the test accordingly.

[ Edit by Mathieu Desnoyers: change "ret" type to unsigned long too. ]

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-probe-user.c
This page took 0.024788 seconds and 4 git commands to generate.