diff options
| author | James Smart <[email protected]> | 2019-09-21 20:58:51 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-09-30 22:07:09 -0400 |
| commit | 97acd0019d5dadd9c0e111c2083c889bfe548f25 (patch) | |
| tree | 9a4c505eee39ea2c4dc93eed22d48a665a7875bc /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | a5f7337f5a82fc4b13b4481a7e56977656cbe7d1 (diff) | |
scsi: lpfc: Fix rpi release when deleting vport
A prior use-after-free mailbox fix solved it's problem by null'ing a ndlp
pointer. However, further testing has shown that this change causes a
later state change to occasionally be skipped, which results in a reference
count never being decremented thus the rpi is never released, which causes
a vport delete to never succeed.
Revise the fix in the prior patch to no longer null the ndlp. Instead the
RELEASE_RPI flag is set which will drive the release of the rpi.
Given the new code was added at a deep indentation level, refactor the code
block using a new routine that avoids the indentation issues.
Fixes: 9b1640686470 ("scsi: lpfc: Fix use-after-free mailbox cmd completion")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions