dma-direct: warn if there is no pool for force unencrypted allocations
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Oct 2021 08:00:55 +0000 (10:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Dec 2021 11:50:10 +0000 (12:50 +0100)
commit78bc72787ab9e638173aeb1f589578105d3a43c9
treee1d30b5422e8b38ced4093470f29174b7e6bc5d6
parent955f58f7406ad912825fc344c7825fd904b124a0
dma-direct: warn if there is no pool for force unencrypted allocations

Instead of blindly running into a blocking operation for a non-blocking gfp,
return NULL and spew an error.  Note that Kconfig prevents this for all
currently relevant platforms, and this is just a debug check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c