Skip to content
Commit f959dcd6 authored by Thomas Tai's avatar Thomas Tai Committed by Christoph Hellwig
Browse files

dma-direct: Fix potential NULL pointer dereference



When booting the kernel v5.9-rc4 on a VM, the kernel would panic when
printing a warning message in swiotlb_map(). The dev->dma_mask must not
be a NULL pointer when calling the dma mapping layer. A NULL pointer
check can potentially avoid the panic.

Signed-off-by: default avatarThomas Tai <thomas.tai@oracle.com>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent a92df4f6
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