Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit c21beff

Browse files
committed
Fix for recent kernels where this takes a u64
1 parent d58d16a commit c21beff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/user_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl UserSlicePtrReader {
100100
bindings::_copy_from_user(
101101
data.as_mut_ptr() as *mut c_types::c_void,
102102
self.0,
103-
data.len() as u32,
103+
data.len() as _,
104104
)
105105
};
106106
if res != 0 {
@@ -126,7 +126,7 @@ impl UserSlicePtrWriter {
126126
bindings::_copy_to_user(
127127
self.0,
128128
data.as_ptr() as *const c_types::c_void,
129-
data.len() as u32,
129+
data.len() as _,
130130
)
131131
};
132132
if res != 0 {

0 commit comments

Comments
 (0)