]> git.openfabrics.org - ~emulex/compat-rdma_3.12.git/commit
linux-next-cherry-picks: RDMA/ucma.c: Different fix for ucma context uid=0, causing...
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 8 Aug 2012 15:32:44 +0000 (18:32 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 8 Aug 2012 15:32:44 +0000 (18:32 +0300)
commitd2092581044807f69e54c60560b096bacf730f9c
tree07af9794d6b9cd08c4961377e6b8b1bdd3cd8b7c
parent2036874cf4c072c04b96b69e5b965a788fc77a6d
linux-next-cherry-picks: RDMA/ucma.c: Different fix for ucma context uid=0, causing iWarp RDMA applications to fail in connection establishment

Fix for ucma context uid=0, causing iWarp RDMA applications to fail in connection establishment.

This is a new patch addressing the librdmacm segfault when RDMA_CM_EVENT_ESTABLISHED event shows up with evt->id_priv = NULL
In the ucma_event_handler(), ctx->file->mut is moved up to prevent race conditions and protect from assigning zero ucma ctx->uid to asynchronously generated events.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Sean Hefty <Sean.Hefty@intel.com>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
linux-next-cherry-picks/0001-RDMA-ucma.c-Different-fix-for-ucma-context-uid-0-cau.patch [new file with mode: 0644]