linux-stable/drivers/infiniband/core
Ira Weiny 26c454288a 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>
2015-05-20 12:37:34 -04:00
..
addr.c IB/core: change rdma_gid2ip into void function as it always return zero 2015-05-05 13:21:27 -04:00
agent.c IB/Verbs: Use management helper rdma_cap_ib_smi() 2015-05-18 13:35:05 -04:00
agent.h
cache.c IB/core: Create common start/end port functions 2015-05-18 13:35:06 -04:00
cm.c IB/Verbs: Use management helper rdma_cap_ib_cm() 2015-05-18 13:35:05 -04:00
cm_msgs.h IB/core: Fix unaligned accesses 2015-05-05 13:21:27 -04:00
cma.c IB/Verbs: Use management helper rdma_cap_eth_ah() 2015-05-18 13:35:06 -04:00
core_priv.h IB/core: Resolve Ethernet L2 addresses when modifying QP 2014-01-19 15:14:04 -08:00
device.c IB/core: Create common start/end port functions 2015-05-18 13:35:06 -04:00
fmr_pool.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
iwcm.c RDMA/iwcm: Use a default listen backlog if needed 2014-08-05 07:33:24 -07:00
iwcm.h
iwpm_msg.c RDMA/core: Fix for parsing netlink string attribute 2015-05-12 13:03:04 -04:00
iwpm_util.c RDMA/core: Enable the iWarp Port Mapper to provide the actual address of the connecting peer to its clients 2015-05-05 09:18:01 -04:00
iwpm_util.h RDMA/core: Enable the iWarp Port Mapper to provide the actual address of the connecting peer to its clients 2015-05-05 09:18:01 -04:00
mad.c IB/Verbs: Use management helper rdma_cap_ib_smi() 2015-05-18 13:35:05 -04:00
mad_priv.h IB/mad: Update module to [pr|dev]_* style print messages 2014-08-10 20:35:39 -07:00
mad_rmpp.c
mad_rmpp.h
Makefile IB/core: Implement support for MMU notifiers regarding on demand paging regions 2014-12-15 18:13:36 -08:00
multicast.c IB/Verbs: Use management helper rdma_cap_ib_mcast() 2015-05-18 13:35:05 -04:00
netlink.c RDMA/core: Add support for iWARP Port Mapper user space service 2014-06-10 10:11:45 -07:00
packer.c
sa.h
sa_query.c IB/Verbs: Use management helper rdma_cap_eth_ah() 2015-05-18 13:35:06 -04:00
smi.c
smi.h
sysfs.c IB/core: Fix kobject leak on device register error flow 2014-06-05 09:37:10 -07:00
ucm.c IB/Verbs: Use management helper rdma_cap_ib_cm() 2015-05-18 13:35:05 -04:00
ucma.c IB/Verbs: Use management helper rdma_cap_ib_sa() 2015-05-18 13:35:05 -04:00
ud_header.c
umem.c IB/core: don't disallow registering region starting at 0x0 2015-04-15 16:05:02 -04:00
umem_odp.c IB/core: dma unmap optimizations 2015-05-05 09:18:02 -04:00
umem_rbtree.c IB/core: Implement support for MMU notifiers regarding on demand paging regions 2014-12-15 18:13:36 -08:00
user_mad.c IB/user_mad: Fix buggy usage of port index 2015-05-20 12:37:34 -04:00
uverbs.h IB/core: Add support for extended query device caps 2015-02-18 08:36:26 -08:00
uverbs_cmd.c Merge branches 'core', 'cxgb4', 'iser', 'mlx4', 'mlx5', 'ocrdma', 'odp', 'qib' and 'srp' into for-next 2015-02-20 09:04:40 -08:00
uverbs_main.c ib_uverbs: Fix pages leak when using XRC SRQs 2015-04-15 16:06:39 -04:00
uverbs_marshall.c IB/core: When marshaling uverbs path, clear unused fields 2014-09-22 09:46:52 -07:00
verbs.c IB/Verbs: Use management helper rdma_cap_eth_ah() 2015-05-18 13:35:06 -04:00