From: Tatyana Nikolova Date: Fri, 3 Aug 2012 23:59:41 +0000 (+0000) Subject: RDMA/ucma.c: Fix for events with wrong context on iWARP X-Git-Tag: v3.6-rc3~36^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418edaaba96e58112b15c82b4907084e2a9caf42;p=pandora-kernel.git RDMA/ucma.c: Fix for events with wrong context on iWARP It is possible for asynchronous RDMA_CM_EVENT_ESTABLISHED events to be generated with ctx->uid == 0, because ucma_set_event_context() copies ctx->uid to the event structure outside of ctx->file->mut. This leads to a crash in the userspace library, since it gets a bogus event. Fix this by taking the mutex a bit earlier in ucma_event_handler. Signed-off-by: Tatyana Nikolova Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed