From: Emil Medve Date: Tue, 23 Oct 2007 18:37:24 +0000 (+0200) Subject: mmc: fix sg->page fallout X-Git-Tag: v2.6.24-rc1~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4e0177647a3686f3658c26d52a60d0f1231c2127;p=linux-2.6-omap-h63xx.git mmc: fix sg->page fallout Signed-off-by: Emil Medve Signed-off-by: Jens Axboe --- diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h index 000e6a91978..0f39c490f02 100644 --- a/drivers/mmc/host/mmci.h +++ b/drivers/mmc/host/mmci.h @@ -169,7 +169,7 @@ static inline char *mmci_kmap_atomic(struct mmci_host *host, unsigned long *flag struct scatterlist *sg = host->sg_ptr; local_irq_save(*flags); - return kmap_atomic(sg->page, KM_BIO_SRC_IRQ) + sg->offset; + return kmap_atomic(sg_page(sg), KM_BIO_SRC_IRQ) + sg->offset; } static inline void mmci_kunmap_atomic(struct mmci_host *host, void *buffer, unsigned long *flags)