Ralph Campbell d9620a4c82 IB/mad: initialize mad_agent_priv before putting on lists
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.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2009-02-27 14:44:32 -08:00
..
2009-01-16 14:45:34 -05:00
2009-01-16 16:15:16 +11:00
2009-01-14 19:19:04 +01:00
2009-01-14 14:42:21 -08:00
2009-01-15 16:39:40 -08:00
2009-01-16 14:45:34 -05:00
2009-01-16 14:45:34 -05:00