From: Michael S. Tsirkin Date: Thu, 22 Mar 2007 21:40:16 +0000 (-0700) Subject: IPoIB: Fix use-after-free in path_rec_completion() X-Git-Tag: v2.6.21-rc5~46^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d04d01b113be5b88418eb30087753c3de0a39fd8;p=pandora-kernel.git IPoIB: Fix use-after-free in path_rec_completion() The connected mode code added the possibility that an neigh struct gets freed in the list_for_each_entry() loop in path_rec_completion(), which causes a use-after-free. Fix this by changing to the _safe variant of the list walking macro. This was spotted by the Coverity checker (CID 1567). Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed