[openib-general] Re: [PATCH] fix list_entry usage

Hal Rosenstock
Thu Oct 14 10:55:01 PDT 2004


On Thu, 2004-10-14 at 13:16, Sean Hefty wrote: 
> >                 rbuf =
> > list_entry(&port_priv->recv_posted_mad_list[qpn].next,
> >                                  struct ib_mad_recv_buf,
> >                                  list);
> 
> I didn't try this (it was a diversion from the change that I was 
> trying to make), but I'm guessing that we need to remove the &.

Good guess :-) Thanks. Applied.

-- Hal



More information about the openib-general mailing list