X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-user.c;h=411899d16497fa483e65cf70108665adc0cb9c56;hb=a865837a7cac3e1a35907d9b216caf2eb1c7c00c;hp=b777c40dfeb0ff23b95f7fb50a7769b366a0b4c6;hpb=a230fd6d07ab3c99a385f5b17ef0bfe055f47653;p=lttng-modules.git diff --git a/probes/lttng-probe-user.c b/probes/lttng-probe-user.c index b777c40d..411899d1 100644 --- a/probes/lttng-probe-user.c +++ b/probes/lttng-probe-user.c @@ -7,7 +7,6 @@ #include #include -#include #include /* @@ -31,8 +30,7 @@ long lttng_strlen_user_inatomic(const char *addr) char v; unsigned long ret; - if (unlikely(!lttng_access_ok(VERIFY_READ, - (__force const char __user *) addr, + if (unlikely(!access_ok((__force const char __user *) addr, sizeof(v)))) break; ret = __copy_from_user_inatomic(&v,