[openib-general] Re: [PATCH] Fix leak on MAD initialization failure

Hal Rosenstock halr at voltaire.com
Thu Oct 6 06:09:45 PDT 2005


On Wed, 2005-10-05 at 17:25, Roland Dreier wrote:
> It seems that there is a bug in ib_mad_init_device(): if
> ib_agent_port_open() fails for a given port, then the current code
> doesn't call ib_mad_port_close() for that port.  I think something
> like the patch below is needed.

Yup, it missed calling ib_agent_port_close in the case where it was the
ib_agent_port_open which failed for a port.

Thanks. Applied.

-- Hal





More information about the general mailing list