Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
bf5a8961
Commit
bf5a8961
authored
Apr 28, 2023
by
Gwenhael Goavec-Merou
Committed by
Vaibhav Gupta
Jun 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/zio/chardev: fix copy_to_user call for kernel >= 4.18
parent
72d18a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
chardev.c
drivers/zio/chardev.c
+4
-0
No files found.
drivers/zio/chardev.c
View file @
bf5a8961
...
...
@@ -428,6 +428,10 @@ static ssize_t zio_generic_read(struct file *f, char __user *ubuf,
struct
zio_channel
*
chan
=
priv
->
chan
;
struct
zio_bi
*
bi
=
chan
->
bi
;
struct
zio_block
*
block
;
#if KERNEL_VERSION(4, 18, 0) <= LINUX_VERSION_CODE
struct
zio_control
zio_ctrl
;
#endif
int
(
*
can_read
)(
struct
zio_f_priv
*
);
int
fault
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment