]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 06:11:40 +0000 (22:11 -0800)
commitbede98e781747623ae170667694a71ef19c6ba7f
tree4621d1214dda718057034a3426f1c2884b914bd9
parente9a7faf11af94957e5107b40af46c2e329541510
IB/mlx4: Fix memory leak in __mlx4_ib_modify_qp

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>
drivers/infiniband/hw/mlx4/qp.c