Skip to content
Commit 4c4d7f87 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Vinod Koul
Browse files

dmaengine: core: Revert back to pr_debug in __dma_request_channel()

Commit ef859312

 ("dmaengine: core: Use dev_ functions for debug and
error prints") wasn't quite right in __dma_request_channel() by claiming
that all pr_ prints have valid DMA channel pointer. Obviously it is not
true as __dma_request_channel() is looking for a channel and returns NULL
if it does not find it.

Prevent this potential NULL pointer dereference by reverting back to
pr_debug().

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent ef859312
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