]> git.ipfire.org Git - people/ms/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:06 +0000 (14:11 +0100)
commit419672eea8f4f0fd1a7692e066389f1094ea152d
treee5eb0b5dc1da66fb4927d77323050bcfacc845f4
parentb3f855626a6ccc309472f4adb2217b019af39f2b
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx4/qp.c