[dpdk-dev] [PATCH] raw/ioat: fix dereference before null check

Thomas Monjalon thomas at monjalon.net
Mon Oct 19 10:24:13 CEST 2020


14/10/2020 13:34, Bruce Richardson:
> On Wed, Oct 14, 2020 at 11:11:10AM +0100, Kevin Laatz wrote:
> > The 'idxd' pointer in 'idxd_rawdev_destroy()' is being dereferenced before
> > it is checked. To fix this, the null pointer check was moved to occur
> > earlier in the code.
> > 
> > Coverity issue: 363040
> > Fixes: ff06fa2cf3ba ("raw/ioat: probe idxd PCI")
> > 
> > Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks




More information about the dev mailing list