diff options
author | 2020-09-17 18:43:03 +0200 | |
---|---|---|
committer | 2020-09-17 18:43:20 +0200 | |
commit | f959dcd6ddfd29235030e8026471ac1b022ad2b0 (patch) | |
tree | b3bb71e9171c97f693240bdeb3e9ad2f0a5d580c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dma-mapping: move the dma_declare_coherent_memory documentation (diff) | |
download | wireguard-linux-f959dcd6ddfd29235030e8026471ac1b022ad2b0.tar.xz wireguard-linux-f959dcd6ddfd29235030e8026471ac1b022ad2b0.zip |
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: Thomas Tai <thomas.tai@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions