diff options
| author | Krishnamraju Eraparaju <[email protected]> | 2019-10-07 10:42:29 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2019-10-18 18:49:01 +0000 |
| commit | e17fa5c95ef2434a08e0be217969d246d037f0c2 (patch) | |
| tree | 200cde12253ffcef89d7ad315b62e6342b7781cd /net/unix/af_unix.c | |
| parent | RDMA/iwcm: move iw_rem_ref() calls out of spinlock (diff) | |
| download | kernel-e17fa5c95ef2434a08e0be217969d246d037f0c2.tar.gz kernel-e17fa5c95ef2434a08e0be217969d246d037f0c2.zip | |
RDMA/siw: free siw_base_qp in kref release routine
As siw_free_qp() is the last routine to access 'siw_base_qp' structure,
freeing this structure early in siw_destroy_qp() could cause
touch-after-free issue.
Hence, moved kfree(siw_base_qp) from siw_destroy_qp() to siw_free_qp().
Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
Signed-off-by: Krishnamraju Eraparaju <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
