]> git.openfabrics.org - ~shefty/rdma-win.git/commit
OpenSM: trivial fix for segfault on invalid port info
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Apr 2006 08:53:53 +0000 (08:53 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Apr 2006 08:53:53 +0000 (08:53 +0000)
commit4084e25466d4797f016efde548aedcf5c5ec00e7
tree1a6e4ac1dd98c939f49e3a8e16289a67456e1a57
parent36bfa7ea4a20e21dad3072e12fd09a57c59b36b4
OpenSM: trivial fix for segfault on invalid port info

A previous patch adding explicit set remote port state DOWN in case the
local one is recycled was not safe. In the case of irresponsive remote
port, it would actually try and traverse a null pointer of the port info.

This simple fix is just a little more careful about it.
p_rem_port was also renamed to p_rem_physp as the pointer actually
points to a physical port...

Signed-off-by: Eitan Zahavi <eitan@mellanox.co.il>
git-svn-id: svn://openib.tc.cornell.edu/gen1@279 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/opensm/user/opensm/osm_lid_mgr.c