diff options
author | 2015-10-15 15:01:02 +0300 | |
---|---|---|
committer | 2015-10-15 12:35:54 -0400 | |
commit | 17b38fb89055bf5df402980c9546a8b046552f2b (patch) | |
tree | 292d5bc17607c3ca26d12fc1a612f007af0015bb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | IB/ipoib: For sendonly join free the multicast group on leave (diff) | |
download | linux-dev-17b38fb89055bf5df402980c9546a8b046552f2b.tar.xz linux-dev-17b38fb89055bf5df402980c9546a8b046552f2b.zip |
IB/core: Fix memory corruption in ib_cache_gid_set_default_gid
When ib_cache_gid_set_default_gid is called from several threads,
updating the table could make find_gid fail, therefore a negative
index will be retruned and an invalid table entry will be used.
Locking find_gid as well fixes this problem.
Fixes: 03db3a2d81e6 ('IB/core: Add RoCE GID table management')
Signed-off-by: Doron Tsur <doront@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.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