]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/mlx4: Fix memory leak in __mlx4_ib_modify_qp
authorMajd Dibbiny <majd@mellanox.com>
Thu, 29 Jan 2015 08:41:41 +0000 (10:41 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:45 +0000 (21:02 -0400)
commitf8a4faf99f25ad33a3845eacf53b550544ec05af
tree404c23e4582fea576cc08a96e417686ab4869d51
parentaeda89ac0f69090c11d6bf159ed983700e6621ef
IB/mlx4: Fix memory leak in __mlx4_ib_modify_qp

commit bede98e781747623ae170667694a71ef19c6ba7f upstream.

In case handle_eth_ud_smac_index fails, we need to free the allocated resources.

Fixes: 2f5bb473681b ("mlx4: Add ref counting to port MAC table for RoCE")
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/hw/mlx4/qp.c