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
f7e51939
Commit
f7e51939
authored
Oct 26, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
29f1caa9
866fd66b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+4
-4
No files found.
drivers/scsi/libata-scsi.c
View file @
f7e51939
...
...
@@ -742,13 +742,13 @@ static unsigned int ata_scsi_rbuf_get(struct scsi_cmnd *cmd, u8 **buf_out)
* spin_lock_irqsave(host_set lock)
*/
static
inline
void
ata_scsi_rbuf_put
(
struct
scsi_cmnd
*
cmd
)
static
inline
void
ata_scsi_rbuf_put
(
struct
scsi_cmnd
*
cmd
,
u8
*
buf
)
{
if
(
cmd
->
use_sg
)
{
struct
scatterlist
*
sg
;
sg
=
(
struct
scatterlist
*
)
cmd
->
request_buffer
;
kunmap_atomic
(
sg
->
page
,
KM_USER0
);
kunmap_atomic
(
buf
-
sg
->
offset
,
KM_USER0
);
}
}
...
...
@@ -778,7 +778,7 @@ void ata_scsi_rbuf_fill(struct ata_scsi_args *args,
buflen
=
ata_scsi_rbuf_get
(
cmd
,
&
rbuf
);
memset
(
rbuf
,
0
,
buflen
);
rc
=
actor
(
args
,
rbuf
,
buflen
);
ata_scsi_rbuf_put
(
cmd
);
ata_scsi_rbuf_put
(
cmd
,
rbuf
);
if
(
rc
)
ata_bad_cdb
(
cmd
,
args
->
done
);
...
...
@@ -1264,7 +1264,7 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat)
buflen
=
ata_scsi_rbuf_get
(
cmd
,
&
buf
);
buf
[
2
]
=
0x5
;
buf
[
3
]
=
(
buf
[
3
]
&
0xf0
)
|
2
;
ata_scsi_rbuf_put
(
cmd
);
ata_scsi_rbuf_put
(
cmd
,
buf
);
}
cmd
->
result
=
SAM_STAT_GOOD
;
}
...
...
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