[openib-general] Re: Fwd: [PATCH 1 of 3] move destructor to struct neigh_parms

Michael S. Tsirkin mst at mellanox.co.il
Wed Jan 18 13:27:32 PST 2006


Quoting Shirley Ma <xma at us.ibm.com>:
> Subject: Re: Fwd: [PATCH 1 of 3] move destructor to struct neigh_parms
> 
> 
> >+                 if (neigh->parms->neigh_destructor)
> >+                                  (neigh->parms->neigh_destructor)(neigh); 
> 
> Is that safe without checking neigh->parms here?

Yes, we have neigh_parms_put(neigh->parms); a couple of lines below.

-- 
MST



More information about the general mailing list