From: Roland Dreier Date: Mon, 27 Jun 2005 21:36:46 +0000 (-0700) Subject: [PATCH] IB: Fix race in sa_query X-Git-Tag: v2.6.13-rc1~51^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae4c1d2362292ccd3318ff67d18aa5c22ee820c;p=pandora-kernel.git [PATCH] IB: Fix race in sa_query Use a copy of the id we'll return to the consumer so that we don't dereference query->sa_query after calling send_mad(). A completion may occur very quickly and end up freeing the query before we get to do anything after send_mad(). Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed