aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorSagi Grimberg <[email protected]>2018-06-25 20:58:17 +0300
committerChristoph Hellwig <[email protected]>2018-06-28 16:29:54 +0200
commit682630f00a219a1b0696abe9c0967e660068187b (patch)
tree43a225e137266a0943308eca09fdfd62acf6638e /tools/perf/util/trace-event-scripting.c
parent15bfd21fbc5d35834b9ea383dc458a1f0c9e3434 (diff)
nvme-rdma: fix possible double free of controller async event buffer
If reconnect/reset failed where the controller async event buffer was freed, we might end up freeing it again as we call nvme_rdma_destroy_admin_queue again in the remove path. Given that the sequence is guaranteed to serialize by .ctrl_stop, we simply set ctrl->async_event_sqe.data to NULL and don't free it in future visits. Reported-by: Max Gurtovoy <[email protected]> Tested-by: Max Gurtovoy <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions