Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5_en: Add missing check for memory allocation failure
The patch afb736e: "net/mlx5: Ethernet resource handling files" from May 28, 2015, leads to the following static checker warning: drivers/net/ethernet/mellanox/mlx5/core/en_flow_table.c:726 mlx5e_create_main_flow_table() error: potential null dereference 'g'. (kcalloc returns null) Fixes: afb736e ("net/mlx5: Ethernet resource handling files") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Amir Vadai <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information