From: Erez Shitrit Date: Wed, 16 Oct 2013 14:37:51 +0000 (+0300) Subject: IPoIB: Fix usage of uninitialized multicast objects X-Git-Tag: v3.13-rc1~44^2^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c8ba588495547d1598f1b83d5eb086bef65e4b;p=pandora-kernel.git IPoIB: Fix usage of uninitialized multicast objects The driver should avoid calling ib_sa_free_multicast on the mcast->mc object until it finishes its initialization state. Otherwise we can crash when ipoib_mcast_dev_flush() attempts to use the uninitialized multicast object. Instead, only call wait_for_completion() for multicast entries that started the join process, meaning that ib_sa_join_multicast() finished. Signed-off-by: Erez Shitrit Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed