Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e017764 authored by Emil Medve's avatar Emil Medve Committed by Jens Axboe
Browse files

mmc: fix sg->page fallout

parent de26103d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)