diff options
author | Maor Gottlieb <[email protected]> | 2020-10-28 08:50:51 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-11-02 15:23:55 -0400 |
commit | 372a1786283e50e7cb437ab7fdb1b95597310ad7 (patch) | |
tree | 38b27c68ff0517d2e7882ad309a6310a00fd29ea /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 683a9c7ed81769b6ecb6229afb00b6cda8e4bcfb (diff) |
IB/srpt: Fix memory leak in srpt_add_one
Failure in srpt_refresh_port() for the second port will leave MAD
registered for the first one, however, the srpt_add_one() will be marked
as "failed" and SRPT will leak resources for that registered but not used
and released first port.
Unregister the MAD agent for all ports in case of failure.
Fixes: a42d985bd5b2 ("ib_srpt: Initial SRP Target merge for v3.3-rc1")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Maor Gottlieb <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions