diff options
| author | Martin George <marting@netapp.com> | 2026-10-23 19:30:57 +0530 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-10-28 08:11:22 -0700 |
| commit | a563f13a54efb5662627743ef56b3d5f87ef6045 (patch) | |
| tree | 8dc849cf817e56a3ff0e31f57819de78686c1ddd /tools/lib/python/kdoc/python_version.py | |
| parent | a47e3077fbfb4b0dd5350a79e178c22723c17bc5 (diff) | |
nvme-fc: fix reference leak in nvme_fc_nvme_discovery_store()
nvme_fc_nvme_discovery_store() takes an lport and rport reference before
checking whether the rport is already queued on the local discovery
list. On the retry path (goto restart), rports that were queued in an
earlier pass are skipped by the list_empty() check, but the references
taken for them in the current pass are never dropped, leaking one lport
and one rport reference per retry.
Check list_empty() first and only take references for rports that are
actually added to the local discovery list.
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
