]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/ipoib: For sendonly join free the multicast group on leave
authorChristoph Lameter <cl@linux.com>
Sun, 11 Oct 2015 23:49:42 +0000 (18:49 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 22 Aug 2017 18:31:33 +0000 (11:31 -0700)
commit49db85b690d3f4c285e18ce9ace8437091e1dc1d
treef29d41001e01f1f8ee46ecc8a50034c4955714ec
parentd9e70e672eb617b132aa868ef73cbb5c06c894cf
IB/ipoib: For sendonly join free the multicast group on leave

Orabug: 26324050

When we leave the multicast group on expiration of a neighbor we
do not free the mcast structure. This results in a memory leak
that causes ib_dealloc_pd to fail and print a WARN_ON message
and backtrace.

Fixes: bd99b2e05c4d (IB/ipoib: Expire sendonly multicast joins)
Signed-off-by: Christoph Lameter <cl@linux.com>
Tested-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
(cherry picked from commit 0b5c9279e568d90903acedc2b9b832d8d78e8288)

Reviewed-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c