diff options
author | Krishnamraju Eraparaju <krishna2@chelsio.com> | 2019-10-07 12:42:29 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-10-18 20:49:01 +0200 |
commit | e17fa5c95ef2434a08e0be217969d246d037f0c2 (patch) | |
tree | 200cde12253ffcef89d7ad315b62e6342b7781cd /drivers/infiniband/hw | |
parent | RDMA/iwcm: move iw_rem_ref() calls out of spinlock (diff) | |
download | linux-e17fa5c95ef2434a08e0be217969d246d037f0c2.tar.xz linux-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 <krishna2@chelsio.com>
Link: https://lore.kernel.org/r/20191007104229.29412-1-krishna2@chelsio.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
0 files changed, 0 insertions, 0 deletions