From: Ira Weiny Date: Thu, 14 May 2015 00:02:57 +0000 (-0400) Subject: IB/user_mad: Fix buggy usage of port index X-Git-Tag: omap-for-v4.2/fixes-rc1^2~152^2~31^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c454288a4beac774ea31c15284783fcd75721d;p=pandora-kernel.git IB/user_mad: Fix buggy usage of port index The addition of the rdma_cap_ib_mad is technically broken in ib_umad_remove_one because the loop "i" value is not a port value. This bug resulted in the ib_umad failing to properly remove its resources when the core capability functions were converted to bit fields. NOTE: e17371d73908 did not result in broken behavior on its own. It was only an issue when the implementation of rdma_cap_ib_mad was changed. Pass the port value to rdma_cap_ib_mad. Fixes: e17371d73908 ("IB/Verbs: Use management helper rdma_cap_ib_mad()") Signed-off-by: Ira Weiny Signed-off-by: Doug Ledford --- Reading git-diff-tree failed