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:26:59 +0000 (11:26 -0500)
commit2a8b83a12300795c2f82ba19826e2eeaa5135030
treedb1bf2e9d66d7655d370fa78fe6cd29b26f8b00b
parentb93de86fedd7081ebc2a587c8fdefadceb33bc08
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.027375 seconds and 4 git commands to generate.