summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorRongQiang Xie <xie.rongqiang@zte.com.cn>2017-08-22 19:49:21 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-06 02:49:47 +0200
commitc4e9863c4db14442a38c868d2c899e246d64faea (patch)
tree4c9cdd1891cd27d72d6fc003a029787ee8a0bf96 /drivers/net/mlx5/mlx5_stats.c
parenta8e54b44515ce741a0b73fe2e35e99f6f1dcef4b (diff)
downloaddpdk-c4e9863c4db14442a38c868d2c899e246d64faea.zip
dpdk-c4e9863c4db14442a38c868d2c899e246d64faea.tar.gz
dpdk-c4e9863c4db14442a38c868d2c899e246d64faea.tar.xz
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>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
0 files changed, 0 insertions, 0 deletions