]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB: Fix race in sa_query
authorRoland Dreier <rolandd@cisco.com>
Mon, 27 Jun 2005 21:36:46 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Jun 2005 22:11:47 +0000 (15:11 -0700)
commit45d7295655ee51ef9cc3f3954051524643c1162f
tree2bab3983a784bd6baef0fda8f8a62a555f38cb99
parentd46cefee8460bf0a33445c3936d06984af761ec9
[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 <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/core/sa_query.c