]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:33:58 +0000 (08:33 -0700)
commit22d79d2d63d65be500ad6f73beb7b47d87646438
tree4268c32943ce5a249ba139c0ede09cf56a28fce5
parentb0220535a3b683487e2ff3204cca77faabf7d23e
net/mlx5: Fix command bad flow on command entry allocation failure

[ Upstream commit 219c81f7d1d5a89656cb3b53d3b4e11e93608d80 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c