dect
/
linux-2.6
Archived
13
0
Fork 0

[MMC] mmci: kunmap_atomic() unmaps virtual address, not page

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Evgeniy Polyakov 2006-01-05 10:31:23 +00:00 committed by Russell King
parent e9c091b474
commit f3e2628bed
2 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ static irqreturn_t mmci_pio_irq(int irq, void *dev_id, struct pt_regs *regs)
/*
* Unmap the buffer.
*/
mmci_kunmap_atomic(host, &flags);
mmci_kunmap_atomic(host, buffer, &flags);
host->sg_off += len;
host->size -= len;

View File

@ -172,8 +172,8 @@ static inline char *mmci_kmap_atomic(struct mmci_host *host, unsigned long *flag
return kmap_atomic(sg->page, KM_BIO_SRC_IRQ) + sg->offset;
}
static inline void mmci_kunmap_atomic(struct mmci_host *host, unsigned long *flags)
static inline void mmci_kunmap_atomic(struct mmci_host *host, void *buffer, unsigned long *flags)
{
kunmap_atomic(host->sg_ptr->page, KM_BIO_SRC_IRQ);
kunmap_atomic(buffer, KM_BIO_SRC_IRQ);
local_irq_restore(*flags);
}