summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorXi Wang <wangxi11@huawei.com>2020-09-01 15:38:55 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-09-02 21:56:40 +0300
commit8aa64be019567c4f90d45c5082a4b6f22e182d00 (patch)
treeb7ba451adcccf7febccdc91709063f0f2c11132f /tools/perf/scripts/python/export-to-postgresql.py
parent097a9d23b7250355b182c5fd47dd4c55b22b1c33 (diff)
downloadlinux-8aa64be019567c4f90d45c5082a4b6f22e182d00.tar.xz
RDMA/core: Fix unsafe linked list traversal after failing to allocate CQ
It's not safe to access the next CQ in list_for_each_entry() after invoking ib_free_cq(), because the CQ has already been freed in current iteration. It should be replaced by list_for_each_entry_safe(). Fixes: c7ff819aefea ("RDMA/core: Introduce shared CQ pool API") Link: https://lore.kernel.org/r/1598963935-32335-1-git-send-email-liweihang@huawei.com Signed-off-by: Xi Wang <wangxi11@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions