]> git.openfabrics.org - ~shefty/rdma-win.git/commit
In osm_ucast_mgr, where osm_req_set is called for SwitchInfo,
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 13:52:13 +0000 (13:52 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 13:52:13 +0000 (13:52 +0000)
commit9d6c6b6dbf146cadee3809c41312398165e7ff58
tree5a4fe3b56e04503d0619ce52caf24d9ad0b6ec8f
parent883e98f6cb4f1b6e0345771d29db675eaa4aa88a
In osm_ucast_mgr, where osm_req_set is called for SwitchInfo,
fix bug where it copies more memory than it should into the SMP.

While running opensm with valgrind, it was found out that there is a
problemĀ  with osm_req_set function. It clears the madw.data by size of
IB_SMP_DATA_SIZE, but the function doesn't require a payload of this
size. In osm_ucast_mgr there was a call to the function with a payload
of smaller size (for SwitchInfo).

To fix it, payload_size to the osm_req_set was added.

git-svn-id: svn://openib.tc.cornell.edu/gen1@144 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/opensm/user/include/opensm/osm_req.h
trunk/ulp/opensm/user/opensm/osm_lid_mgr.c
trunk/ulp/opensm/user/opensm/osm_link_mgr.c
trunk/ulp/opensm/user/opensm/osm_mcast_mgr.c
trunk/ulp/opensm/user/opensm/osm_req.c
trunk/ulp/opensm/user/opensm/osm_state_mgr.c
trunk/ulp/opensm/user/opensm/osm_sw_info_rcv.c
trunk/ulp/opensm/user/opensm/osm_ucast_mgr.c