Yossi Etigin ff79ae8083 IPoIB: Fix crash in path_rec_completion()
Fix a crash in path_rec_completion() during an SM up/down loop.  If
more than one path record request is issued, the first completion
releases path->done, allowing ipoib_flush_paths() to free the path,
and thus corrupting it for the second completion.

Commit ee1e2c82 ("IPoIB: Refresh paths instead of flushing them on SM
change events") added the field path->valid and changed the test "if
(!path)" to "if (!path || !path->valid)".  This change made it
possible for a path with an outstanding query to pass the test and
issue another query on the same path.  Having two queries on the same
path leads to a crash.

This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1325>.

Signed-off-by: Yossi Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-11-12 10:24:39 -08:00
..
2008-10-21 07:48:21 -04:00
2008-10-23 00:11:07 -04:00
2008-10-20 08:52:40 -07:00
2008-10-22 01:19:39 +02:00
2008-10-17 14:41:09 -07:00
2008-10-21 23:58:41 -04:00
2008-10-21 07:48:33 -04:00
2008-10-23 00:43:47 -04:00
2008-10-21 07:48:37 -04:00
2008-10-16 11:21:30 -07:00
2008-10-21 15:49:55 +11:00
2008-10-23 00:11:07 -04:00
2008-10-23 09:35:18 -07:00
2008-10-20 08:52:36 -07:00
2008-10-20 11:32:09 -07:00
2008-10-23 09:19:47 -07:00
2008-10-22 22:55:20 -07:00