diff options
| author | Tatyana Nikolova <[email protected]> | 2012-08-03 23:59:41 +0000 |
|---|---|---|
| committer | Roland Dreier <[email protected]> | 2012-08-13 20:08:35 +0000 |
| commit | 418edaaba96e58112b15c82b4907084e2a9caf42 (patch) | |
| tree | 1472ed448d5ec116731480526b4bea2c1e0dfa91 /arch/powerpc/lib/code-patching.c | |
| parent | Linux 3.6-rc1 (diff) | |
| download | kernel-418edaaba96e58112b15c82b4907084e2a9caf42.tar.gz kernel-418edaaba96e58112b15c82b4907084e2a9caf42.zip | |
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 <[email protected]>
Signed-off-by: Sean Hefty <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
