net/ifc: add devargs pointer check
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 16 Jul 2019 11:31:07 +0000 (19:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit66c303bddfff5fff8a71bed2830fb6e8b0a144b6
treeaf34810a3c455d4b0595663b633bb82aed166932
parent9c27a91018db96206edf3a1338a792b6d9d91a45
net/ifc: add devargs pointer check

We need to check devargs pointer before dereference it, if no devargs
specified then this driver just skips the device.

Fixes: 40ef35f4a504 ("net/ifc: detect if VDPA mode is specified")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ifc/ifcvf_vdpa.c