Skip to content
Commit 6d573398 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Christoph Hellwig
Browse files

dma-coherent: fix rmem_dma_device_init regression

My recent bug fix introduced another bug, which caused rmem_dma_device_init
to always fail, as rmem->priv is never set to anything.

This restores the previous behavior, calling dma_init_coherent_memory()
whenever ->priv is NULL.

Fixes: d35b0996

 ("dma-coherent: fix dma_declare_coherent_memory() logic error")
Reported-by: default avatarRoy Pledge <roy.pledge@nxp.com>
Tested-by: default avatarRoy Pledge <roy.pledge@nxp.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 2bd6bf03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment