summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-08-16 23:26:29 +0300
committerDoug Ledford <dledford@redhat.com>2016-08-22 22:00:42 +0300
commit56c8ca510de2884b2f741e5fd8d3df6161378de6 (patch)
treeeb5e5371b2811f9e26392fd05de2fd0efec7ebcf /tools/perf/scripts/python/export-to-postgresql.py
parent08fe16f6192bccd5798e9b60461f7aa151b34cd4 (diff)
downloadlinux-56c8ca510de2884b2f741e5fd8d3df6161378de6.tar.xz
IB/rdmvat: Fix double vfree() in rvt_create_qp() error path
The unwind logic for creating a user QP has a double vfree of the non-shared receive queue when handling a "too many qps" failure. The code unwinds the mmmap info by decrementing a reference count which will call rvt_release_mmap_info() which in turn does the vfree() of the r_rq.wq. The unwind code then does the same free. Fix by guarding the vfree() with the same test that is done in close and only do the vfree() if qp->ip is NULL. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions