[dpdk-dev] [PATCH] virtio: check if devargs is NULL before checking its value

Thomas Monjalon thomas.monjalon at 6wind.com
Wed May 25 12:47:30 CEST 2016


> -		    dev->devargs->type != RTE_DEVTYPE_WHITELISTED_PCI) {
> +		    (!dev->devargs ||
> +		     dev->devargs->type != RTE_DEVTYPE_WHITELISTED_PCI)) {

Should the title be something like "fix crash ..."?

I would also add
Reported-by: Vincent Li <vincent.mc.li at gmail.com>


More information about the dev mailing list