[openib-general] Re: [PATCH] Opensm - modifying uninitialized memory

Hal Rosenstock halr at voltaire.com
Mon Nov 7 05:18:32 PST 2005


On Mon, 2005-11-07 at 07:47, Yael Kalka wrote:
> Hi Hal,
> 
> While running opensm with valgrind we 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 fixing it - I've added a payload_size to the osm_req_set.
> It seems more correct then to just fix the specific call in the
> osm_ucast_mgr.
> The attached patch fixes it.

Thanks. Applied.




More information about the general mailing list