Commit 9b981f82 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ide_pio_sector() kmap fix

kunmap_atomic() takes a kernel-virtual address, not a pageframe address.
For the hundredth time.

We really should get typechecking happening there..
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 69015507
...@@ -304,7 +304,7 @@ static void ide_pio_sector(ide_drive_t *drive, unsigned int write) ...@@ -304,7 +304,7 @@ static void ide_pio_sector(ide_drive_t *drive, unsigned int write)
else else
taskfile_input_data(drive, buf, SECTOR_WORDS); taskfile_input_data(drive, buf, SECTOR_WORDS);
kunmap_atomic(page, KM_BIO_SRC_IRQ); kunmap_atomic(buf, KM_BIO_SRC_IRQ);
#ifdef CONFIG_HIGHMEM #ifdef CONFIG_HIGHMEM
local_irq_restore(flags); local_irq_restore(flags);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment