Message ID | 20240925202013.45374-4-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | f25389e779500cf4a59ef9804534237841bce536 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/8] net/mlx5: Fix error path in multi-packet WQE transmit | expand |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tir.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tir.c index d4239e3b3c88..11f724ad90db 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tir.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tir.c @@ -23,6 +23,9 @@ struct mlx5e_tir_builder *mlx5e_tir_builder_alloc(bool modify) struct mlx5e_tir_builder *builder; builder = kvzalloc(sizeof(*builder), GFP_KERNEL); + if (!builder) + return NULL; + builder->modify = modify; return builder;