projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lib_ring_buffer_copy_from_user_inatomic error handling
[lttng-modules.git]
/
lib
/
ringbuffer
/
backend_internal.h
diff --git
a/lib/ringbuffer/backend_internal.h
b/lib/ringbuffer/backend_internal.h
index 04a7ae17db7ea7fcba964f1d64092c5de7409b22..16001776f6ebcc4b9477c427a868509b9bc5c387 100644
(file)
--- a/
lib/ringbuffer/backend_internal.h
+++ b/
lib/ringbuffer/backend_internal.h
@@
-23,9
+23,9
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include
"../../wrapper/ringbuffer/config.h"
-#include
"../../wrapper/ringbuffer/backend_types.h"
-#include
"../../wrapper/ringbuffer/frontend_types.h"
+#include
<wrapper/ringbuffer/config.h>
+#include
<wrapper/ringbuffer/backend_types.h>
+#include
<wrapper/ringbuffer/frontend_types.h>
#include <linux/string.h>
#include <linux/uaccess.h>
#include <linux/string.h>
#include <linux/uaccess.h>
@@
-451,6
+451,8
@@
do { \
/*
* We use __copy_from_user_inatomic to copy userspace data since we already
* did the access_ok for the whole range.
/*
* We use __copy_from_user_inatomic to copy userspace data since we already
* did the access_ok for the whole range.
+ *
+ * Return 0 if OK, nonzero on error.
*/
static inline
unsigned long lib_ring_buffer_do_copy_from_user_inatomic(void *dest,
*/
static inline
unsigned long lib_ring_buffer_do_copy_from_user_inatomic(void *dest,
This page took
0.034778 seconds
and
4
git commands to generate.