diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2009-02-27 23:44:32 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-02-27 23:44:32 +0100 |
commit | d9620a4c82c61a91c9313f80ba951c902573c028 (patch) | |
tree | d49b92e161f7fc8176e04084b3d981d94ff9e2bd /crypto | |
parent | IB/mad: Fix null pointer dereference in local_completions() (diff) | |
download | linux-d9620a4c82c61a91c9313f80ba951c902573c028.tar.xz linux-d9620a4c82c61a91c9313f80ba951c902573c028.zip |
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions