OSDN Git Service

net/mlx5: Fix command bad flow on command entry allocation failure
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 25 Jun 2017 15:45:32 +0000 (18:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 27 Jul 2017 13:40:16 +0000 (16:40 +0300)
commit219c81f7d1d5a89656cb3b53d3b4e11e93608d80
tree605f7e1c31bd02226eccc69abd48b8e8d25f33aa
parent061870800efb4e3d1ad4082a2569363629bdfcfc
net/mlx5: Fix command bad flow on command entry allocation failure

When driver fail to allocate an entry to send command to FW, it must
notify the calling function and release the memory allocated for
this command.

Fixes: e126ba97dba9e ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c