Thread (2 messages) flat view 2 messages, 2 authors, 2018-06-08

Re: [PATCH v2 net] net: fddi: fix a possible null-ptr-deref

From: David Miller <davem@davemloft.net>
Date: 2018-06-08 22:48:20
Also in: lkml

From: YueHaibing <redacted>
Date: Fri, 8 Jun 2018 10:58:25 +0800
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 <redacted>
---
v1->v2: move from pci_dma* to dma_* as Christoph suggested
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help