summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDanit Goldberg <danitg@mellanox.com>2019-09-16 09:48:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 14:10:01 +0300
commita924850c93d4f19b19cb71854c3e36fb5f98148c (patch)
tree0ac90f578e459d5530e5f49a29f34ec624f824f0 /scripts
parent40b071992ca59afdd1c1b720acb5e5c7363130b8 (diff)
downloadlinux-a924850c93d4f19b19cb71854c3e36fb5f98148c.tar.xz
IB/mlx5: Free mpi in mp_slave mode
commit 5d44adebbb7e785939df3db36ac360f5e8b73e44 upstream. ib_add_slave_port() allocates a multiport struct but never frees it. Don't leak memory, free the allocated mpi struct during driver unload. Cc: <stable@vger.kernel.org> Fixes: 32f69e4be269 ("{net, IB}/mlx5: Manage port association for multiport RoCE") Link: https://lore.kernel.org/r/20190916064818.19823-3-leon@kernel.org Signed-off-by: Danit Goldberg <danitg@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions