Skip to content

Commit

Permalink
[MMC] mmci: kunmap_atomic() unmaps virtual address, not page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Evgeniy Polyakov authored and Russell King committed Jan 5, 2006
1 parent e9c091b commit f3e2628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/mmc/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions drivers/mmc/mmci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f3e2628

Please sign in to comment.