diff options
author | Krishnamraju Eraparaju <krishna2@chelsio.com> | 2019-10-07 16:12:29 +0530 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-10-18 14:49:01 -0400 |
commit | e17fa5c95ef2434a08e0be217969d246d037f0c2 (patch) | |
tree | 200cde12253ffcef89d7ad315b62e6342b7781cd /block/mq-deadline.c | |
parent | RDMA/iwcm: move iw_rem_ref() calls out of spinlock (diff) | |
download | linux-dev-e17fa5c95ef2434a08e0be217969d246d037f0c2.tar.xz linux-dev-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 'block/mq-deadline.c')
0 files changed, 0 insertions, 0 deletions