diff options
| author | Doron Tsur <[email protected]> | 2015-10-11 12:58:17 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2015-10-21 19:43:12 +0000 |
| commit | 0ca81a2840f77855bbad1b9f172c545c4dc9e6a4 (patch) | |
| tree | 4831bbc2111ad328b50563b827936a1022d25dd4 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
| parent | IB/cma: Use inner P_Key to determine netdev (diff) | |
| download | kernel-0ca81a2840f77855bbad1b9f172c545c4dc9e6a4.tar.gz kernel-0ca81a2840f77855bbad1b9f172c545c4dc9e6a4.zip | |
IB/cm: Fix rb-tree duplicate free and use-after-free
ib_send_cm_sidr_rep could sometimes erase the node from the sidr
(depending on errors in the process). Since ib_send_cm_sidr_rep is
called both from cm_sidr_req_handler and cm_destroy_id, cm_id_priv
could be either erased from the rb_tree twice or not erased at all.
Fixing that by making sure it's erased only once before freeing
cm_id_priv.
Fixes: a977049dacde ('[PATCH] IB: Add the kernel CM implementation')
Signed-off-by: Doron Tsur <[email protected]>
Signed-off-by: Matan Barak <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
