Skip to content

Commit

Permalink
mmc: fix sg->page fallout
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Emil Medve authored and Jens Axboe committed Oct 23, 2007
1 parent de26103 commit 4e01776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/mmci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4e01776

Please sign in to comment.