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

Sean Hefty mshefty at ichips.intel.com
Thu Oct 14 10:16:43 PDT 2004


On Thu, 14 Oct 2004 08:30:45 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> On Wed, 2004-10-13 at 19:52, Sean Hefty wrote:
> > Patch fixes casting to incorrect structures when calling list_entry().
> 
> Have you tried this ? It doesn't work (at least for me). (I had also
> tried the previous similar patch with the same results but forgot to
> report back). It is on my list to debug further unless you get to it
> first.
> 
>                 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 &.

- Sean



More information about the general mailing list