[openib-general] Re: [PATCH] IPOIB: initialization patch in ipoib

Michael S. Tsirkin mst at mellanox.co.il
Fri Feb 18 07:46:24 PST 2005


Quoting r. Shirley Ma <xma at us.ibm.com>:
> Subject: [PATCH] IPOIB: initialization patch in ipoib
> 
> 3. set neighbour->ops->destructor to NULL while kfree(neigh)



> diff -urN infiniband/ulp/ipoib/ipoib_main.c infiniband-patch/ulp/ipoib/
> ipoib_main.c
> --- infiniband/ulp/ipoib/ipoib_main.c        2005-02-17 17:24:56.000000000
> +0000
> +++ infiniband-patch/ulp/ipoib/ipoib_main.c        2005-02-18
> 00:52:22.000000000 +0000
> @@ -673,6 +674,7 @@
>                         ipoib_put_ah(neigh->ah);
>                 list_del(&neigh->list);
>                 *to_ipoib_neigh(n) = NULL;
> +                n->ops->destructor = NULL;
>                 kfree(neigh);
>         }
> 
> 
> 
> 
> Thanks
> Shirley Ma

Why is this necessary?

-- 
MST - Michael S. Tsirkin



More information about the general mailing list