[alsa-devel] [PATCH 1/2] spi: Fix mapping from vmalloc-ed buffer to scatter list

Mark Brown broonie at kernel.org
Fri Nov 14 16:52:22 CET 2014


On Fri, Nov 14, 2014 at 03:40:44PM +0000, Charles Keepax wrote:
> We can only use page_address on memory that has been mapped using kmap,
> when the buffer passed to the SPI has been allocated by vmalloc the page
> has not necessarily been mapped through kmap. This means sometimes
> page_address will return NULL causing the pointer we pass to sg_set_buf
> to be invalid.

Hrm, this is a bug in the mxs driver (which is where we copied the core
code from) - care to fix that too?

> As we only call page_address such that we can pass a virtual address to

s/such/so/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141114/5eac9200/attachment.sig>


More information about the Alsa-devel mailing list