From: Yossi Etigin Date: Wed, 12 Nov 2008 18:24:39 +0000 (-0800) Subject: IPoIB: Fix crash in path_rec_completion() X-Git-Tag: v2.6.28-rc5~61^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff79ae80837cf45cb703b34824dd3862d2ddcb24;p=pandora-kernel.git 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 . Signed-off-by: Yossi Etigin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed