[openib-general] Re: mad.c memory leak

Michael S. Tsirkin mst at mellanox.co.il
Wed Mar 15 06:58:36 PST 2006


Quoting r. Michael S. Tsirkin <mst at mellanox.co.il>:
> There's also something I don't understand: ib_mad_recv_done_handler seems
> to *always* pass response to ib_mad_post_receive_mads, even if
> driver's process_mad returned IB_MAD_RESULT_CONSUMED: we simply
> do "goto out" and that has
> 
>        if (response) {
>                 ib_mad_post_receive_mads(qp_info, response);
> 
> Could you explain please?

I guess the naming is what confuses me: if this is a response, apparently
returned by driver, why are we passing it to ib_mad_post_receive_mads?

-- 
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies



More information about the general mailing list