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
95d54ab0
Commit
95d54ab0
authored
Jul 14, 2004
by
Sergio Gelato
Committed by
Jeff Garzik
Jul 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] libata: fix kunmap() of incorrect page, in PIO data xfer
Obvious bug. Fixes highmem oops.
parent
1ade820c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+4
-2
No files found.
drivers/scsi/libata-core.c
View file @
95d54ab0
...
...
@@ -2029,6 +2029,7 @@ static void ata_pio_sector(struct ata_port *ap)
{
struct
ata_queued_cmd
*
qc
;
struct
scatterlist
*
sg
;
struct
page
*
page
;
unsigned
char
*
buf
;
u8
status
;
...
...
@@ -2065,7 +2066,8 @@ static void ata_pio_sector(struct ata_port *ap)
if
(
qc
->
cursect
==
(
qc
->
nsect
-
1
))
ap
->
pio_task_state
=
PIO_ST_LAST
;
buf
=
kmap
(
sg
[
qc
->
cursg
].
page
)
+
page
=
sg
[
qc
->
cursg
].
page
;
buf
=
kmap
(
page
)
+
sg
[
qc
->
cursg
].
offset
+
(
qc
->
cursg_ofs
*
ATA_SECT_SIZE
);
qc
->
cursect
++
;
...
...
@@ -2088,7 +2090,7 @@ static void ata_pio_sector(struct ata_port *ap)
else
insl
(
ap
->
ioaddr
.
data_addr
,
buf
,
ATA_SECT_DWORDS
);
kunmap
(
sg
[
qc
->
cursg
].
page
);
kunmap
(
page
);
}
static
void
ata_pio_task
(
void
*
_data
)
...
...
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