mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
bp->SharedMemAddr is set to NULL while bp->SharedMemSize lesser-or-equal 0, then memset will trigger null-ptr-deref. fix it by replacing pci_alloc_consistent with dma_zalloc_coherent. Signed-off-by: YueHaibing <[email protected]> Signed-off-by: David S. Miller <[email protected]>