diff options
| author | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-10 11:25:36 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-17 17:05:52 -0300 |
| commit | 153a2e432e3d323b633155633429dcaf71ea7c53 (patch) | |
| tree | 45d0dbaff3822de61c76f741482c64ae88395a2e /lib/mpi/mpiutil.c | |
| parent | 98f67156a80f37db70ec64787020b1f9bc8aea8c (diff) | |
RDMA/cm: Read id.state under lock when doing pr_debug()
The lock should not be dropped before doing the pr_debug() print as it is
accessing data protected by the lock, such as id.state.
Fixes: 119bf81793ea ("IB/cm: Add debug prints to ib_cm")
Link: https://lore.kernel.org/r/20200310092545.251365-7-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
