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:20 +0000 (11:28 -0500)
commit6574f5b0a2f8028270746cf7b5864be32e932fbb
treeb2f3f2e8099c9cb9ac9396aef2e1c77bee026488
parent2658640af68bb5354097b87e897ec1d67f8ca609
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.025355 seconds and 4 git commands to generate.