net/ixgbe: check memory allocation result
authorRongQiang Xie <xie.rongqiang@zte.com.cn>
Tue, 22 Aug 2017 11:49:21 +0000 (19:49 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commitc4e9863c4db14442a38c868d2c899e246d64faea
tree4c9cdd1891cd27d72d6fc003a029787ee8a0bf96
parenta8e54b44515ce741a0b73fe2e35e99f6f1dcef4b
net/ixgbe: check memory allocation result

In the function ixgbe_flow_create(), the value ntuple_filter_ptr,
ethertype_filter_ptr, syn_filter_ptr, fdir_rule_ptr and l2_tn_filter_ptr
use rte_zmalloc().

malloc may return NULL, so we should check if the return value is NULL
or success.

Signed-off-by: RongQiang Xie <xie.rongqiang@zte.com.cn>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ixgbe/ixgbe_flow.c