Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5: check memory allocation in flow creation
[ upstream commit 3f22e31 ] rte_calloc functions returns a non-null pointer in case of success and null pointer in case of failure. The return value should be checked and the function flow should take that into consideration. This patch adds a check for rte_calloc return value in function flow_list_create. Fixes: 84c406e ("net/mlx5: add flow translate function") Signed-off-by: Asaf Penso <asafp@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
- Loading branch information