Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
15919cbb
Commit
15919cbb
authored
Aug 25, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Aug 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] annotation of ki_buf
->ki_buf is always a userland pointer.
parent
52413801
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/aio.c
fs/aio.c
+1
-1
include/linux/aio.h
include/linux/aio.h
+1
-1
No files found.
fs/aio.c
View file @
15919cbb
...
...
@@ -1523,7 +1523,7 @@ int fastcall io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
req
->
ki_user_data
=
iocb
->
aio_data
;
req
->
ki_pos
=
iocb
->
aio_offset
;
req
->
ki_buf
=
(
char
*
)(
unsigned
long
)
iocb
->
aio_buf
;
req
->
ki_buf
=
(
char
__user
*
)(
unsigned
long
)
iocb
->
aio_buf
;
req
->
ki_left
=
req
->
ki_nbytes
=
iocb
->
aio_nbytes
;
req
->
ki_opcode
=
iocb
->
aio_lio_opcode
;
init_waitqueue_func_entry
(
&
req
->
ki_wait
,
aio_wake_function
);
...
...
include/linux/aio.h
View file @
15919cbb
...
...
@@ -67,7 +67,7 @@ struct kiocb {
/* State that we remember to be able to restart/retry */
unsigned
short
ki_opcode
;
size_t
ki_nbytes
;
/* copy of iocb->aio_nbytes */
char
*
ki_buf
;
/* remaining iocb->aio_buf */
char
__user
*
ki_buf
;
/* remaining iocb->aio_buf */
size_t
ki_left
;
/* remaining bytes */
wait_queue_t
ki_wait
;
long
ki_retried
;
/* just for testing */
...
...
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