Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e1f546e1
Commit
e1f546e1
authored
Jun 20, 2005
by
James Bottomley
Committed by
Jens Axboe
Jun 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] The blk_rq_map_user() change missed an update in scsi_ioctl.c
Signed-off-by:
Jens Axboe
<
axboe@suse.de
>
parent
f1970baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/block/scsi_ioctl.c
drivers/block/scsi_ioctl.c
+2
-3
No files found.
drivers/block/scsi_ioctl.c
View file @
e1f546e1
...
...
@@ -216,7 +216,7 @@ static int sg_io(struct file *file, request_queue_t *q,
struct
gendisk
*
bd_disk
,
struct
sg_io_hdr
*
hdr
)
{
unsigned
long
start_time
;
int
reading
,
writing
,
ret
;
int
reading
,
writing
,
ret
=
0
;
struct
request
*
rq
;
struct
bio
*
bio
;
char
sense
[
SCSI_SENSE_BUFFERSIZE
];
...
...
@@ -249,7 +249,6 @@ static int sg_io(struct file *file, request_queue_t *q,
reading
=
1
;
break
;
}
}
rq
=
blk_get_request
(
q
,
writing
?
WRITE
:
READ
,
GFP_KERNEL
);
if
(
!
rq
)
...
...
@@ -335,7 +334,7 @@ static int sg_io(struct file *file, request_queue_t *q,
hdr
->
sb_len_wr
=
len
;
}
if
(
blk_rq_unmap_user
(
rq
,
bio
,
hdr
->
dxfer_len
))
if
(
blk_rq_unmap_user
(
bio
,
hdr
->
dxfer_len
))
ret
=
-
EFAULT
;
/* may not have succeeded, but output values written to control
...
...
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