net/hinic: check memory allocations in flow creation
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 28 Jul 2020 12:34:46 +0000 (20:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commitd7964ce192e79507d3b32b4a02e6293a40eb4708
tree85d06490fff8c5f36685d7950081a414663ba323
parentefeed0894e9c1aaa6f804a6d130677379ca99378
net/hinic: check memory allocations in flow creation

The function rte_zmalloc() could return NULL, the return
value need to be checked.

Fixes: f4ca3fd54c4d ("net/hinic: create and destroy flow director filter")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/hinic/hinic_pmd_flow.c