diff options
author | Ira Weiny <ira.weiny@intel.com> | 2015-05-14 03:02:57 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-05-20 19:37:34 +0300 |
commit | 26c454288a4beac774ea31c15284783fcd75721d (patch) | |
tree | 1210551c9c4a91eac0bcbffff506c7246db392ac /drivers/infiniband/hw/nes | |
parent | ab8be619b81a0d83706294bd791407e0f497d646 (diff) | |
download | linux-26c454288a4beac774ea31c15284783fcd75721d.tar.xz |
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 <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes')
0 files changed, 0 insertions, 0 deletions