[ofa-general] [PATCH] IB/core: initialize mad_agent_priv before putting on lists

Sean Hefty sean.hefty at intel.com
Fri Feb 27 14:23:11 PST 2009


>There is a potential race in ib_register_mad_agent() where the struct
>ib_mad_agent_private is not fully initialized before it is added
>to the list of agents per IB port. This means the ib_mad_agent_private
>could be seen before the refcount, spin locks, and linked lists
>are initialized.  The fix is to initialize the structure earlier.

This looks correct and needed to me.




More information about the general mailing list