2006-01-18 21:27:17

by Michael S. Tsirkin

[permalink] [raw]
Subject: Re: Fwd: [PATCH 1 of 3] move destructor to struct neigh_parms

Quoting Shirley Ma <[email protected]>:
> 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