net/ark: add null pointer check
authorYong Wang <wang.yong19@zte.com.cn>
Thu, 14 Sep 2017 12:03:56 +0000 (08:03 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commit53a9ba132c0cec168dc7ffcf07506326afeccb0e
tree4f281a0c0446715c19ffed08fd59e9b5e8d12668
parentff8cbb49b4808c79b2e78ed19a851f9f05ce8f5d
net/ark: add null pointer check

In function ark_config_device(), there are several malloc without null
point check. Fix it by adding null point check.

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Ed Czeck <ed.czeck@atomicrules.com>
drivers/net/ark/ark_ethdev.c
drivers/net/ark/ark_pktchkr.c
drivers/net/ark/ark_pktdir.c
drivers/net/ark/ark_pktgen.c