[openib-general] [PATCH] ib_mad: Fix return posted receive MAD routine

Sean Hefty
Tue Oct 5 13:42:54 PDT 2004


On Tue, 05 Oct 2004 15:03:12 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> +                       rbuf = list_entry(&port_priv->recv_posted_mad_list[i],
> +                                      struct ib_mad_recv_buf, list);
> +                   rbuf = (struct ib_mad_recv_buf *)rbuf->list.next;

Can we change this, and similar occurrences, to use "->next" in the list_entry macro call itself?  Currently, after the execution of the first statement, rbuf does not reference struct ib_mad_recv_buf.  It references the port_priv routine.

- Sean


More information about the openib-general mailing list