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

Bruce Richardson bruce.richardson at intel.com
Wed Oct 14 13:34:54 CEST 2020


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>


More information about the dev mailing list