[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180608.184814.2215583284330084945.davem@davemloft.net>
Date: Fri, 08 Jun 2018 18:48:14 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 net] net: fddi: fix a possible null-ptr-deref
From: YueHaibing <yuehaibing@...wei.com>
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 <yuehaibing@...wei.com>
> ---
> v1->v2: move from pci_dma* to dma_* as Christoph suggested
Applied.
Powered by blists - more mailing lists