RDMA/cm: Add missing locking around id.state in cm_dup_req_handler
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 09:25:39 +0000 (11:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 17 Mar 2020 20:05:53 +0000 (17:05 -0300)
commitd1de9a88074b66482443f0cd91618d7b51a7c9b6
tree3f2ecbf7aa03f75eecc197777915dcb98b5aec49
parentc206f8bad15d30f1e35821c21a2fb146e4668ebf
RDMA/cm: Add missing locking around id.state in cm_dup_req_handler

All accesses to id.state must be done under the spinlock.

Fixes: a977049dacde ("[PATCH] IB: Add the kernel CM implementation")
Link: https://lore.kernel.org/r/20200310092545.251365-10-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c